diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-30 15:51:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-30 15:51:23 +0200 |
commit | 1692b3e82521e7d73a908f532eced90491e1eded (patch) | |
tree | c45272faba67485f3702395f43282a81a981cf5f /odb/mysql/exceptions.cxx | |
parent | 4452be925b749572f0e3edcb21e9af818647eb55 (diff) |
Support for automake and VC++ builds
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> |