diff options
Diffstat (limited to 'odb/mysql/traits.hxx')
-rw-r--r-- | odb/mysql/traits.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx index bf52d78..a520d1b 100644 --- a/odb/mysql/traits.hxx +++ b/odb/mysql/traits.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> // MYSQL_TIME, used in custom specializations. #else # include <mysql/mysql.h> |