Skip to content

Commit b19dc4c

Browse files
committed
Fix: Conflicting max in MSVC builds
1 parent 9e228c4 commit b19dc4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/fork_union.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@
111111
#endif
112112

113113
#if defined(_WIN32)
114+
#define NOMINMAX
114115
#include <windows.h> // `GlobalMemoryStatusEx`
116+
#undef NOMINMAX
115117
#endif
116118

117119
/**

0 commit comments

Comments
 (0)