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/shared-ptr/base.hxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'odb/details/shared-ptr/base.hxx') 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 + #include #include // std::size_t #include +#include + 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 #include +#include + #endif // ODB_DETAILS_SHARED_PTR_BASE_HXX -- cgit v1.1