diff options
Diffstat (limited to 'odb/mysql/exceptions.cxx')
-rw-r--r-- | odb/mysql/exceptions.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/mysql/exceptions.cxx b/odb/mysql/exceptions.cxx index 1373874..b857fb6 100644 --- a/odb/mysql/exceptions.cxx +++ b/odb/mysql/exceptions.cxx @@ -3,7 +3,16 @@ // copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file -#include <mysql/errmsg.h> // CR_OUT_OF_MEMORY +#include <odb/mysql/details/config.hxx> + +#ifdef LIBODB_MYSQL_INCLUDE_SHORT +# ifdef _WIN32 +# include <winsock2.h> +# endif +# include <errmsg.h> // CR_OUT_OF_MEMORY +#else +# include <mysql/errmsg.h> +#endif #include <new> // std::bad_alloc #include <sstream> |