diff options
Diffstat (limited to 'libodb-oracle/odb/oracle/details')
-rw-r--r-- | libodb-oracle/odb/oracle/details/build2/config-stub.h | 5 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/build2/config-vc-stub.h | 5 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/build2/config-vc.h | 15 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/build2/config.h | 17 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/config-vc.h | 5 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/config.h.in | 12 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/config.hxx | 6 | ||||
-rw-r--r-- | libodb-oracle/odb/oracle/details/export.hxx | 38 |
8 files changed, 5 insertions, 98 deletions
diff --git a/libodb-oracle/odb/oracle/details/build2/config-stub.h b/libodb-oracle/odb/oracle/details/build2/config-stub.h deleted file mode 100644 index 2159951..0000000 --- a/libodb-oracle/odb/oracle/details/build2/config-stub.h +++ /dev/null @@ -1,5 +0,0 @@ -/* file : odb/oracle/details/build2/config-stub.h - * license : ODB NCUEL; see accompanying LICENSE file - */ - -#include <odb/oracle/details/config.h> diff --git a/libodb-oracle/odb/oracle/details/build2/config-vc-stub.h b/libodb-oracle/odb/oracle/details/build2/config-vc-stub.h deleted file mode 100644 index 697da2e..0000000 --- a/libodb-oracle/odb/oracle/details/build2/config-vc-stub.h +++ /dev/null @@ -1,5 +0,0 @@ -/* file : odb/oracle/details/build2/config-vc-stub.h - * license : ODB NCUEL; see accompanying LICENSE file - */ - -#include <odb/oracle/details/config-vc.h> diff --git a/libodb-oracle/odb/oracle/details/build2/config-vc.h b/libodb-oracle/odb/oracle/details/build2/config-vc.h deleted file mode 100644 index 8b9dbdd..0000000 --- a/libodb-oracle/odb/oracle/details/build2/config-vc.h +++ /dev/null @@ -1,15 +0,0 @@ -/* file : odb/oracle/details/build2/config-vc.h - * license : ODB NCUEL; see accompanying LICENSE file - */ - -/* Configuration file for Windows/VC++ for the build2 build. */ - -#ifndef ODB_ORACLE_DETAILS_CONFIG_VC_H -#define ODB_ORACLE_DETAILS_CONFIG_VC_H - -/* Define LIBODB_ORACLE_BUILD2 for the installed case. */ -#ifndef LIBODB_ORACLE_BUILD2 -# define LIBODB_ORACLE_BUILD2 -#endif - -#endif /* ODB_ORACLE_DETAILS_CONFIG_VC_H */ diff --git a/libodb-oracle/odb/oracle/details/build2/config.h b/libodb-oracle/odb/oracle/details/build2/config.h deleted file mode 100644 index 017c1ba..0000000 --- a/libodb-oracle/odb/oracle/details/build2/config.h +++ /dev/null @@ -1,17 +0,0 @@ -/* file : odb/oracle/details/build2/config.h - * license : ODB NCUEL; see accompanying LICENSE file - */ - -/* Static configuration file for the build2 build. The installed case - (when LIBODB_ORACLE_BUILD2 is not necessarily defined) is the only - reason we have it. */ - -#ifndef ODB_ORACLE_DETAILS_CONFIG_H -#define ODB_ORACLE_DETAILS_CONFIG_H - -/* Define LIBODB_ORACLE_BUILD2 for the installed case. */ -#ifndef LIBODB_ORACLE_BUILD2 -# define LIBODB_ORACLE_BUILD2 -#endif - -#endif /* ODB_ORACLE_DETAILS_CONFIG_H */ diff --git a/libodb-oracle/odb/oracle/details/config-vc.h b/libodb-oracle/odb/oracle/details/config-vc.h deleted file mode 100644 index 8036f07..0000000 --- a/libodb-oracle/odb/oracle/details/config-vc.h +++ /dev/null @@ -1,5 +0,0 @@ -/* file : odb/oracle/details/config-vc.h - * license : ODB NCUEL; see accompanying LICENSE file - */ - -/* Dummy configuration file for Windows/VC++. */ diff --git a/libodb-oracle/odb/oracle/details/config.h.in b/libodb-oracle/odb/oracle/details/config.h.in deleted file mode 100644 index 3624466..0000000 --- a/libodb-oracle/odb/oracle/details/config.h.in +++ /dev/null @@ -1,12 +0,0 @@ -/* file : odb/oracle/details/config.h.in - * license : ODB NCUEL; see accompanying LICENSE file - */ - -/* This file is automatically processed by configure. */ - -#ifndef ODB_ORACLE_DETAILS_CONFIG_H -#define ODB_ORACLE_DETAILS_CONFIG_H - -#undef LIBODB_ORACLE_STATIC_LIB - -#endif /* ODB_ORACLE_DETAILS_CONFIG_H */ diff --git a/libodb-oracle/odb/oracle/details/config.hxx b/libodb-oracle/odb/oracle/details/config.hxx index 89f715b..a9330a4 100644 --- a/libodb-oracle/odb/oracle/details/config.hxx +++ b/libodb-oracle/odb/oracle/details/config.hxx @@ -8,12 +8,6 @@ #ifdef ODB_COMPILER # error libodb-oracle header included in odb-compiled header -#elif !defined(LIBODB_ORACLE_BUILD2) -# ifdef _MSC_VER -# include <odb/oracle/details/config-vc.h> -# else -# include <odb/oracle/details/config.h> -# endif #endif // no post diff --git a/libodb-oracle/odb/oracle/details/export.hxx b/libodb-oracle/odb/oracle/details/export.hxx index 7a7aea5..788948a 100644 --- a/libodb-oracle/odb/oracle/details/export.hxx +++ b/libodb-oracle/odb/oracle/details/export.hxx @@ -6,7 +6,11 @@ #include <odb/pre.hxx> -#include <odb/oracle/details/config.hxx> +// Note: do this check directly instead of including config.hxx. +// +#ifdef ODB_COMPILER +# error libodb-oracle header included in odb-compiled header +#endif // Normally we don't export class templates (but do complete specializations), // inline functions, and classes with only inline member functions. Exporting @@ -16,8 +20,6 @@ // used before their inline definition. The workaround is to reorder code. In // the end it's all trial and error. -#ifdef LIBODB_ORACLE_BUILD2 - #if defined(LIBODB_ORACLE_STATIC) // Using static. # define LIBODB_ORACLE_EXPORT #elif defined(LIBODB_ORACLE_STATIC_BUILD) // Building static. @@ -43,36 +45,6 @@ # define LIBODB_ORACLE_EXPORT // Using static or shared. #endif -#else // LIBODB_ORACLE_BUILD2 - -#ifdef LIBODB_ORACLE_STATIC_LIB -# define LIBODB_ORACLE_EXPORT -#else -# ifdef _WIN32 -# ifdef _MSC_VER -# ifdef LIBODB_ORACLE_DYNAMIC_LIB -# define LIBODB_ORACLE_EXPORT __declspec(dllexport) -# else -# define LIBODB_ORACLE_EXPORT __declspec(dllimport) -# endif -# else -# ifdef LIBODB_ORACLE_DYNAMIC_LIB -# ifdef DLL_EXPORT -# define LIBODB_ORACLE_EXPORT __declspec(dllexport) -# else -# define LIBODB_ORACLE_EXPORT -# endif -# else -# define LIBODB_ORACLE_EXPORT __declspec(dllimport) -# endif -# endif -# else -# define LIBODB_ORACLE_EXPORT -# endif -#endif - -#endif // LIBODB_ORACLE_BUILD2 - #include <odb/post.hxx> #endif // ODB_ORACLE_DETAILS_EXPORT_HXX |