From 6fb470a39ef8900b71634333b0a2227dc8b62799 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Aug 2010 14:52:12 +0200 Subject: Add support for creating other build systems (meta-building) Add support for automake, VC++ 9, and VC++ 10. Also add the Win32 and 'NULL' threading model implementations. --- odb/details/posix/condition.hxx | 7 ++++++- odb/details/posix/exceptions.hxx | 7 ++++++- odb/details/posix/mutex.hxx | 8 +++++++- odb/details/posix/thread.hxx | 8 +++++++- odb/details/posix/tls.hxx | 16 ++++++++++------ 5 files changed, 36 insertions(+), 10 deletions(-) (limited to 'odb/details/posix') diff --git a/odb/details/posix/condition.hxx b/odb/details/posix/condition.hxx index 8e8e05c..1358db8 100644 --- a/odb/details/posix/condition.hxx +++ b/odb/details/posix/condition.hxx @@ -6,15 +6,18 @@ #ifndef ODB_DETAILS_POSIX_CONDITION_HXX #define ODB_DETAILS_POSIX_CONDITION_HXX +#include + #include +#include #include namespace odb { namespace details { - class condition + class LIBODB_EXPORT condition { public: ~condition (); @@ -39,4 +42,6 @@ namespace odb #include +#include + #endif // ODB_DETAILS_POSIX_CONDITION_HXX diff --git a/odb/details/posix/exceptions.hxx b/odb/details/posix/exceptions.hxx index f4b4572..76f5763 100644 --- a/odb/details/posix/exceptions.hxx +++ b/odb/details/posix/exceptions.hxx @@ -6,13 +6,16 @@ #ifndef ODB_DETAILS_POSIX_EXCEPTIONS_HXX #define ODB_DETAILS_POSIX_EXCEPTIONS_HXX +#include + +#include #include namespace odb { namespace details { - struct posix_exception: details::exception + struct LIBODB_EXPORT posix_exception: details::exception { posix_exception (int code) : code_ (code) {} @@ -28,4 +31,6 @@ namespace odb } } +#include + #endif // ODB_DETAILS_POSIX_EXCEPTIONS_HXX diff --git a/odb/details/posix/mutex.hxx b/odb/details/posix/mutex.hxx index d06a8c3..d62fa24 100644 --- a/odb/details/posix/mutex.hxx +++ b/odb/details/posix/mutex.hxx @@ -6,13 +6,17 @@ #ifndef ODB_DETAILS_POSIX_MUTEX_HXX #define ODB_DETAILS_POSIX_MUTEX_HXX +#include + #include +#include + namespace odb { namespace details { - class mutex + class LIBODB_EXPORT mutex { public: ~mutex (); @@ -37,4 +41,6 @@ namespace odb #include +#include + #endif // ODB_DETAILS_POSIX_MUTEX_HXX diff --git a/odb/details/posix/thread.hxx b/odb/details/posix/thread.hxx index 5036b37..f2e2a75 100644 --- a/odb/details/posix/thread.hxx +++ b/odb/details/posix/thread.hxx @@ -6,13 +6,17 @@ #ifndef ODB_DETAILS_POSIX_THREAD_HXX #define ODB_DETAILS_POSIX_THREAD_HXX +#include + #include +#include + namespace odb { namespace details { - class thread + class LIBODB_EXPORT thread { public: ~thread (); @@ -34,4 +38,6 @@ namespace odb #include +#include + #endif // ODB_DETAILS_POSIX_THREAD_HXX diff --git a/odb/details/posix/tls.hxx b/odb/details/posix/tls.hxx index 6e11a64..92b0f4b 100644 --- a/odb/details/posix/tls.hxx +++ b/odb/details/posix/tls.hxx @@ -6,6 +6,8 @@ #ifndef ODB_DETAILS_POSIX_TLS_HXX #define ODB_DETAILS_POSIX_TLS_HXX +#include + #include namespace odb @@ -69,23 +71,23 @@ namespace odb template inline T& - tls_get (const tls& s) + tls_get (const tls& t) { - return s.get (); + return t.get (); } template inline T* - tls_get (const tls& s) + tls_get (const tls& t) { - return s.get (); + return t.get (); } template inline void - tls_set (tls& s, T* p) + tls_set (tls& t, T* p) { - return s.set (p); + t.set (p); } } } @@ -93,4 +95,6 @@ namespace odb #include #include +#include + #endif // ODB_DETAILS_POSIX_TLS_HXX -- cgit v1.1