aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/details/config.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-03 16:21:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-03 16:21:31 +0200
commit7e8e8aba7cc49bd26393c8f2cb07d99df9fec8dd (patch)
treecbbef7278026edf6ee1d9d93c9ef3df2e50bd001 /odb/mysql/details/config.hxx
parentab9911fc1ed97bcfcb013c202c610a950609f979 (diff)
Add support for MinGW build
Diffstat (limited to 'odb/mysql/details/config.hxx')
-rw-r--r--odb/mysql/details/config.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/odb/mysql/details/config.hxx b/odb/mysql/details/config.hxx
index f8418c6..957f623 100644
--- a/odb/mysql/details/config.hxx
+++ b/odb/mysql/details/config.hxx
@@ -8,9 +8,15 @@
// no pre
-#ifndef LIBODB_MYSQL_INCLUDE_SHORT
+#ifdef HAVE_CONFIG_H
+# include <odb/mysql/details/config.h>
+#endif
+
+#if !defined(LIBODB_MYSQL_INCLUDE_SHORT) && !defined (LIBODB_MYSQL_INCLUDE_LONG)
#ifdef _WIN32
#define LIBODB_MYSQL_INCLUDE_SHORT 1
+ #else
+ #define LIBODB_MYSQL_INCLUDE_LONG 1
#endif
#endif