LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
NoMinMaxWindows.h
Go to the documentation of this file.
1 
9 #ifndef LLU_NOMINMAXWINDOWS_H
10 #define LLU_NOMINMAXWINDOWS_H
11 
12 #ifdef _WIN32
13 
14 /* Prevent windows.h from defining max and min macros. They collide with std::max, std::min, etc. */
15 #ifndef NOMINMAX
16 #define NOMINMAX
17 #endif
18 
19 #include <windows.h>
20 
21 #undef NOMINMAX
22 
23 #endif
24 
25 #endif // LLU_NOMINMAXWINDOWS_H