diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-27 23:59:42 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-29 17:11:38 +0300 |
commit | 6586a59e63d089f38503656949d7aa8734ca8924 (patch) | |
tree | 5733850890635be94a18626b8acc710f89e63b01 /odb/mysql/details/config.hxx | |
parent | 619d3ff17c0d2c7eb910285792329491f5438268 (diff) |
Add support for build2 build
Diffstat (limited to 'odb/mysql/details/config.hxx')
-rw-r--r-- | odb/mysql/details/config.hxx | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/odb/mysql/details/config.hxx b/odb/mysql/details/config.hxx index d29e9a5..f05044c 100644 --- a/odb/mysql/details/config.hxx +++ b/odb/mysql/details/config.hxx @@ -7,14 +7,25 @@ // no pre -#ifdef _MSC_VER -# if !defined(LIBODB_MYSQL_INCLUDE_SHORT) && !defined (LIBODB_MYSQL_INCLUDE_LONG) -# define LIBODB_MYSQL_INCLUDE_SHORT 1 -# endif -#elif defined(ODB_COMPILER) +#ifdef ODB_COMPILER # error libodb-mysql header included in odb-compiled header -#else -# include <odb/mysql/details/config.h> +#elif !defined(LIBODB_MYSQL_BUILD2) +# ifdef _MSC_VER +# include <odb/mysql/details/config-vc.h> +# else +# include <odb/mysql/details/config.h> +# endif +#endif + +// LIBODB_MYSQL_BUILD2 macro can be defined either by the buildfile or by the +// included odb/mysql/details/config*.h (see above). +// +#ifdef LIBODB_MYSQL_BUILD2 +# ifdef LIBODB_MYSQL_INCLUDE_SHORT +# error mysql headers must be included with mysql/ prefix +# elif !defined(LIBODB_MYSQL_INCLUDE_LONG) +# define LIBODB_MYSQL_INCLUDE_LONG 1 +# endif #endif // no post |