aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/exceptions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/exceptions.cxx')
-rw-r--r--odb/mysql/exceptions.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/mysql/exceptions.cxx b/odb/mysql/exceptions.cxx
index b857fb6..636c223 100644
--- a/odb/mysql/exceptions.cxx
+++ b/odb/mysql/exceptions.cxx
@@ -5,10 +5,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 <errmsg.h> // CR_OUT_OF_MEMORY
#else
# include <mysql/errmsg.h>