Browse Source

Merge pull request #130 from Whitetigerswt/master

Fix build warning with Boost::asio
yhirose 6 years ago
parent
commit
6afe7f164e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      httplib.h

+ 2 - 0
httplib.h

@@ -29,7 +29,9 @@
 #define S_ISDIR(m)  (((m)&S_IFDIR)==S_IFDIR)
 #define S_ISDIR(m)  (((m)&S_IFDIR)==S_IFDIR)
 #endif //S_ISDIR
 #endif //S_ISDIR
 
 
+#ifndef NOMINMAX
 #define NOMINMAX
 #define NOMINMAX
+#endif //NOMINMAX
 
 
 #include <io.h>
 #include <io.h>
 #include <winsock2.h>
 #include <winsock2.h>