From 2ce1b689c40e1fed002c960f1fbbee5058ed1627 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 14 Aug 2016 11:29:59 +0200 Subject: Minor config file restructuring in preparation for build2 support --- odb/pgsql/details/config-vc.h | 6 ++++++ odb/pgsql/details/config.hxx | 11 +++++++---- odb/pgsql/makefile | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 odb/pgsql/details/config-vc.h 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 +#elif !defined(LIBODB_PGSQL_BUILD2) +# ifdef _MSC_VER +# include +# else +# include +# endif #endif // no post diff --git a/odb/pgsql/makefile b/odb/pgsql/makefile index 3564d9d..27b5d1c 100644 --- a/odb/pgsql/makefile +++ b/odb/pgsql/makefile @@ -103,7 +103,7 @@ $(dist): headers_dist = $(subst $(src_base)/,,$(shell find $(src_base) \ $(dist): gen_headers := $(cli_tun:.cli=.hxx) $(cli_tun:.cli=.ixx) $(dist): export headers = $(sort $(headers_dist) $(gen_headers)) $(dist): gen_dist := $(gen) -$(dist): data_dist := $(cli_tun) details/config.h.in +$(dist): data_dist := $(cli_tun) details/config.h.in details/config-vc.h $(dist): export extra_dist := $(data_dist) \ libodb-pgsql-vc8.vcproj libodb-pgsql-vc9.vcproj \ libodb-pgsql-vc10.vcxproj libodb-pgsql-vc10.vcxproj.filters \ -- cgit v1.1