diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-26 14:52:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-26 14:52:12 +0200 |
commit | 6fb470a39ef8900b71634333b0a2227dc8b62799 (patch) | |
tree | 6d782be7a2b25c3f21e9d25f7c7251bde2699994 /odb/details/shared-ptr | |
parent | c883d0ba2f4450f35de6767355555fa83e6262ea (diff) |
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.
Diffstat (limited to 'odb/details/shared-ptr')
-rw-r--r-- | odb/details/shared-ptr/base.hxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/odb/details/shared-ptr/base.hxx b/odb/details/shared-ptr/base.hxx index 4fbbc0b..309f7d2 100644 --- a/odb/details/shared-ptr/base.hxx +++ b/odb/details/shared-ptr/base.hxx @@ -6,16 +6,20 @@ #ifndef ODB_DETAILS_SHARED_PTR_BASE_HXX #define ODB_DETAILS_SHARED_PTR_BASE_HXX +#include <odb/pre.hxx> + #include <new> #include <cstddef> // std::size_t #include <odb/exception.hxx> +#include <odb/details/export.hxx> + namespace odb { namespace details { - struct share + struct LIBODB_EXPORT share { explicit share (char id); @@ -32,23 +36,23 @@ namespace odb } } -void* +LIBODB_EXPORT void* operator new (std::size_t, odb::details::share) throw (std::bad_alloc); -void +LIBODB_EXPORT void operator delete (void*, odb::details::share) throw (); namespace odb { namespace details { - struct not_shared: exception + struct LIBODB_EXPORT not_shared: exception { virtual const char* what () const throw (); }; - struct shared_base + struct LIBODB_EXPORT shared_base { shared_base (); shared_base (const shared_base&); @@ -105,4 +109,6 @@ namespace odb #include <odb/details/shared-ptr/base.ixx> #include <odb/details/shared-ptr/base.txx> +#include <odb/post.hxx> + #endif // ODB_DETAILS_SHARED_PTR_BASE_HXX |