diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-14 11:29:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-14 11:29:59 +0200 |
commit | 2ce1b689c40e1fed002c960f1fbbee5058ed1627 (patch) | |
tree | 7ae0fa4459d67289511138d419b5eae9b94a762a /odb/pgsql/details | |
parent | dc93d2e69df6e1649afff87ac49408649bdf608b (diff) |
Minor config file restructuring in preparation for build2 support
Diffstat (limited to 'odb/pgsql/details')
-rw-r--r-- | odb/pgsql/details/config-vc.h | 6 | ||||
-rw-r--r-- | odb/pgsql/details/config.hxx | 11 |
2 files changed, 13 insertions, 4 deletions
diff --git a/odb/pgsql/details/config-vc.h b/odb/pgsql/details/config-vc.h new file mode 100644 index 0000000..147ce25 --- /dev/null +++ b/odb/pgsql/details/config-vc.h @@ -0,0 +1,6 @@ +/* file : odb/pgsql/details/config-vc.h + * copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC + * license : GNU GPL v2; see accompanying LICENSE file + */ + +/* Dummy configuration file for Windows/VC++. */ diff --git a/odb/pgsql/details/config.hxx b/odb/pgsql/details/config.hxx index 6ab242e..a270afe 100644 --- a/odb/pgsql/details/config.hxx +++ b/odb/pgsql/details/config.hxx @@ -7,11 +7,14 @@ // no pre -#ifdef _MSC_VER -#elif defined(ODB_COMPILER) +#ifdef ODB_COMPILER # error libodb-pgsql header included in odb-compiled header -#else -# include <odb/pgsql/details/config.h> +#elif !defined(LIBODB_PGSQL_BUILD2) +# ifdef _MSC_VER +# include <odb/pgsql/details/config-vc.h> +# else +# include <odb/pgsql/details/config.h> +# endif #endif // no post |