Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 5c247b1

Browse files
committed
CDRIVER-1036: Exclude min & max macros on Windows in libbson
1 parent 769cc08 commit 5c247b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bson/bson-compat.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
# ifndef _WIN32_WINNT
4646
# define _WIN32_WINNT 0x0600
4747
# endif
48+
# ifndef NOMINMAX
49+
# define NOMINMAX
50+
# endif
4851
# include <winsock2.h>
4952
# ifndef WIN32_LEAN_AND_MEAN
5053
# define WIN32_LEAN_AND_MEAN

0 commit comments

Comments
 (0)