aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/mysql.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/odb/mysql/mysql.hxx b/odb/mysql/mysql.hxx
index 1773433..f4286b9 100644
--- a/odb/mysql/mysql.hxx
+++ b/odb/mysql/mysql.hxx
@@ -10,7 +10,13 @@
#include <odb/mysql/mysql-types.hxx>
#ifdef _WIN32
-# include <winsock2.h>
+# ifndef NOMINMAX // No min and max macros.
+# define NOMINMAX
+# include <winsock2.h>
+# undef NOMINMAX
+# else
+# include <winsock2.h>
+# endif
#endif
#ifdef LIBODB_MYSQL_INCLUDE_SHORT