aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/database.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/database.hxx')
-rw-r--r--odb/mysql/database.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx
index 0344f3c..b10b037 100644
--- a/odb/mysql/database.hxx
+++ b/odb/mysql/database.hxx
@@ -10,10 +10,11 @@
#include <odb/mysql/details/config.hxx>
+#ifdef _WIN32
+# include <winsock2.h>
+#endif
+
#ifdef LIBODB_MYSQL_INCLUDE_SHORT
-# ifdef _WIN32
-# include <winsock2.h>
-# endif
# include <mysql.h>
#else
# include <mysql/mysql.h>