summaryrefslogtreecommitdiff
path: root/libodb-boost/odb/boost/details
diff options
context:
space:
mode:
Diffstat (limited to 'libodb-boost/odb/boost/details')
-rw-r--r--libodb-boost/odb/boost/details/build2/config-stub.h5
-rw-r--r--libodb-boost/odb/boost/details/build2/config-vc-stub.h5
-rw-r--r--libodb-boost/odb/boost/details/build2/config-vc.h15
-rw-r--r--libodb-boost/odb/boost/details/build2/config.h17
-rw-r--r--libodb-boost/odb/boost/details/config-vc.h5
-rw-r--r--libodb-boost/odb/boost/details/config.h.in12
-rw-r--r--libodb-boost/odb/boost/details/config.hxx21
-rw-r--r--libodb-boost/odb/boost/details/export.hxx78
8 files changed, 158 insertions, 0 deletions
diff --git a/libodb-boost/odb/boost/details/build2/config-stub.h b/libodb-boost/odb/boost/details/build2/config-stub.h
new file mode 100644
index 0000000..6f5f461
--- /dev/null
+++ b/libodb-boost/odb/boost/details/build2/config-stub.h
@@ -0,0 +1,5 @@
+/* file : odb/boost/details/build2/config-stub.h
+ * license : GNU GPL v2; see accompanying LICENSE file
+ */
+
+#include <odb/boost/details/config.h>
diff --git a/libodb-boost/odb/boost/details/build2/config-vc-stub.h b/libodb-boost/odb/boost/details/build2/config-vc-stub.h
new file mode 100644
index 0000000..c6650f3
--- /dev/null
+++ b/libodb-boost/odb/boost/details/build2/config-vc-stub.h
@@ -0,0 +1,5 @@
+/* file : odb/boost/details/build2/config-vc-stub.h
+ * license : GNU GPL v2; see accompanying LICENSE file
+ */
+
+#include <odb/boost/details/config-vc.h>
diff --git a/libodb-boost/odb/boost/details/build2/config-vc.h b/libodb-boost/odb/boost/details/build2/config-vc.h
new file mode 100644
index 0000000..5cdff2b
--- /dev/null
+++ b/libodb-boost/odb/boost/details/build2/config-vc.h
@@ -0,0 +1,15 @@
+/* file : odb/boost/details/build2/config-vc.h
+ * license : GNU GPL v2; see accompanying LICENSE file
+ */
+
+/* Configuration file for Windows/VC++ for the build2 build. */
+
+#ifndef ODB_BOOST_DETAILS_CONFIG_VC_H
+#define ODB_BOOST_DETAILS_CONFIG_VC_H
+
+/* Define LIBODB_BOOST_BUILD2 for the installed case. */
+#ifndef LIBODB_BOOST_BUILD2
+# define LIBODB_BOOST_BUILD2
+#endif
+
+#endif /* ODB_BOOST_DETAILS_CONFIG_VC_H */
diff --git a/libodb-boost/odb/boost/details/build2/config.h b/libodb-boost/odb/boost/details/build2/config.h
new file mode 100644
index 0000000..ea24ba3
--- /dev/null
+++ b/libodb-boost/odb/boost/details/build2/config.h
@@ -0,0 +1,17 @@
+/* file : odb/boost/details/build2/config.h
+ * license : GNU GPL v2; see accompanying LICENSE file
+ */
+
+/* Static configuration file for the build2 build. The installed case
+ (when LIBODB_BOOST_BUILD2 is not necessarily defined) is the only
+ reason we have it. */
+
+#ifndef ODB_BOOST_DETAILS_CONFIG_H
+#define ODB_BOOST_DETAILS_CONFIG_H
+
+/* Define LIBODB_BOOST_BUILD2 for the installed case. */
+#ifndef LIBODB_BOOST_BUILD2
+# define LIBODB_BOOST_BUILD2
+#endif
+
+#endif /* ODB_BOOST_DETAILS_CONFIG_H */
diff --git a/libodb-boost/odb/boost/details/config-vc.h b/libodb-boost/odb/boost/details/config-vc.h
new file mode 100644
index 0000000..687a1e1
--- /dev/null
+++ b/libodb-boost/odb/boost/details/config-vc.h
@@ -0,0 +1,5 @@
+/* file : odb/boost/details/config-vc.h
+ * license : GNU GPL v2; see accompanying LICENSE file
+ */
+
+/* Dummy configuration file for Windows/VC++. */
diff --git a/libodb-boost/odb/boost/details/config.h.in b/libodb-boost/odb/boost/details/config.h.in
new file mode 100644
index 0000000..3cfc3aa
--- /dev/null
+++ b/libodb-boost/odb/boost/details/config.h.in
@@ -0,0 +1,12 @@
+/* file : odb/boost/details/config.h.in
+ * license : GNU GPL v2; see accompanying LICENSE file
+ */
+
+/* This file is automatically processed by configure. */
+
+#ifndef ODB_BOOST_DETAILS_CONFIG_H
+#define ODB_BOOST_DETAILS_CONFIG_H
+
+#undef LIBODB_BOOST_STATIC_LIB
+
+#endif /* ODB_BOOST_DETAILS_CONFIG_H */
diff --git a/libodb-boost/odb/boost/details/config.hxx b/libodb-boost/odb/boost/details/config.hxx
new file mode 100644
index 0000000..f0fe850
--- /dev/null
+++ b/libodb-boost/odb/boost/details/config.hxx
@@ -0,0 +1,21 @@
+// file : odb/boost/details/config.hxx
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_BOOST_DETAILS_CONFIG_HXX
+#define ODB_BOOST_DETAILS_CONFIG_HXX
+
+// no pre
+
+#ifdef ODB_COMPILER
+# define LIBODB_BOOST_STATIC_LIB
+#elif !defined(LIBODB_BOOST_BUILD2)
+# ifdef _MSC_VER
+# include <odb/boost/details/config-vc.h>
+# else
+# include <odb/boost/details/config.h>
+# endif
+#endif
+
+// no post
+
+#endif // ODB_BOOST_DETAILS_CONFIG_HXX
diff --git a/libodb-boost/odb/boost/details/export.hxx b/libodb-boost/odb/boost/details/export.hxx
new file mode 100644
index 0000000..cb3b219
--- /dev/null
+++ b/libodb-boost/odb/boost/details/export.hxx
@@ -0,0 +1,78 @@
+// file : odb/boost/details/export.hxx
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_BOOST_DETAILS_EXPORT_HXX
+#define ODB_BOOST_DETAILS_EXPORT_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/boost/details/config.hxx>
+
+// Normally we don't export class templates (but do complete specializations),
+// inline functions, and classes with only inline member functions. Exporting
+// classes that inherit from non-exported/imported bases (e.g., std::string)
+// will end up badly. The only known workarounds are to not inherit or to not
+// export. Also, MinGW GCC doesn't like seeing non-exported function being
+// used before their inline definition. The workaround is to reorder code. In
+// the end it's all trial and error.
+
+#ifdef LIBODB_BOOST_BUILD2
+
+#if defined(LIBODB_BOOST_STATIC) // Using static.
+# define LIBODB_BOOST_EXPORT
+#elif defined(LIBODB_BOOST_STATIC_BUILD) // Building static.
+# define LIBODB_BOOST_EXPORT
+#elif defined(LIBODB_BOOST_SHARED) // Using shared.
+# ifdef _WIN32
+# define LIBODB_BOOST_EXPORT __declspec(dllimport)
+# else
+# define LIBODB_BOOST_EXPORT
+# endif
+#elif defined(LIBODB_BOOST_SHARED_BUILD) // Building shared.
+# ifdef _WIN32
+# define LIBODB_BOOST_EXPORT __declspec(dllexport)
+# else
+# define LIBODB_BOOST_EXPORT
+# endif
+#else
+// If none of the above macros are defined, then we assume we are being used
+// by some third-party build system that cannot/doesn't signal the library
+// type. Note that this fallback works for both static and shared but in case
+// of shared will be sub-optimal compared to having dllimport.
+//
+# define LIBODB_BOOST_EXPORT // Using static or shared.
+#endif
+
+#else // LIBODB_BOOST_BUILD2
+
+#ifdef LIBODB_BOOST_STATIC_LIB
+# define LIBODB_BOOST_EXPORT
+#else
+# ifdef _WIN32
+# ifdef _MSC_VER
+# ifdef LIBODB_BOOST_DYNAMIC_LIB
+# define LIBODB_BOOST_EXPORT __declspec(dllexport)
+# else
+# define LIBODB_BOOST_EXPORT __declspec(dllimport)
+# endif
+# else
+# ifdef LIBODB_BOOST_DYNAMIC_LIB
+# ifdef DLL_EXPORT
+# define LIBODB_BOOST_EXPORT __declspec(dllexport)
+# else
+# define LIBODB_BOOST_EXPORT
+# endif
+# else
+# define LIBODB_BOOST_EXPORT __declspec(dllimport)
+# endif
+# endif
+# else
+# define LIBODB_BOOST_EXPORT
+# endif
+#endif
+
+#endif // LIBODB_BOOST_BUILD2
+
+#include <odb/post.hxx>
+
+#endif // ODB_BOOST_DETAILS_EXPORT_HXX