From 547d1dd2da9c9b2b010da6d167ac88959342a634 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Aug 2010 15:49:05 +0200 Subject: Support for automake and VC++ builds --- odb/compilers/vc/pre.hxx | 7 ++++++- odb/libodb-vc10.vcxproj | 16 ++++++++-------- odb/libodb-vc9.vcproj | 8 ++++---- 3 files changed, 18 insertions(+), 13 deletions(-) (limited to 'odb') diff --git a/odb/compilers/vc/pre.hxx b/odb/compilers/vc/pre.hxx index cdcb527..13a006b 100644 --- a/odb/compilers/vc/pre.hxx +++ b/odb/compilers/vc/pre.hxx @@ -19,10 +19,15 @@ #pragma warning (disable:4355) // passing 'this' to a member #pragma warning (disable:4800) // forcing value to bool #pragma warning (disable:4290) // exception specification ignored + //#pragma warning (disable:4275) // non dll-interface base -//#pragma warning (disable:4251) // base needs to have dll-interface //#pragma warning (disable:4224) // nonstandard extension (/Za option) +// VC++ 10.0 (2010) +// +#if (_MSC_VER == 1600) +# pragma warning (disable:4251) // needs to have DLL-interface +#endif // Elevated warnings. // diff --git a/odb/libodb-vc10.vcxproj b/odb/libodb-vc10.vcxproj index 5047a56..81f1a2a 100644 --- a/odb/libodb-vc10.vcxproj +++ b/odb/libodb-vc10.vcxproj @@ -65,12 +65,12 @@ true ..\bin\ - odb_d-__value__(interface_version)-vc10 + odb-d-__value__(interface_version)-vc10 true ..\bin64\ - odb_d-__value__(interface_version)-vc10 + odb-d-__value__(interface_version)-vc10 false @@ -90,13 +90,13 @@ Disabled WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_DYNAMIC_LIB;%(PreprocessorDefinitions) .. - 4355;4800;4290;%(DisableSpecificWarnings) + 4355;4800;4290;4251;%(DisableSpecificWarnings) Windows true $(TargetPath) - ..\lib\odb_d.lib + ..\lib\odb-d.lib @@ -107,13 +107,13 @@ Disabled WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_DYNAMIC_LIB;%(PreprocessorDefinitions) .. - 4355;4800;4290;%(DisableSpecificWarnings) + 4355;4800;4290;4251;%(DisableSpecificWarnings) Windows true $(TargetPath) - ..\lib64\odb_d.lib + ..\lib64\odb-d.lib @@ -126,7 +126,7 @@ true WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_DYNAMIC_LIB;%(PreprocessorDefinitions) .. - 4355;4800;4290;%(DisableSpecificWarnings) + 4355;4800;4290;4251;%(DisableSpecificWarnings) Windows @@ -147,7 +147,7 @@ true WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_DYNAMIC_LIB;%(PreprocessorDefinitions) .. - 4355;4800;4290;%(DisableSpecificWarnings) + 4355;4800;4290;4251;%(DisableSpecificWarnings) Windows diff --git a/odb/libodb-vc9.vcproj b/odb/libodb-vc9.vcproj index ac970db..3877c89 100644 --- a/odb/libodb-vc9.vcproj +++ b/odb/libodb-vc9.vcproj @@ -66,11 +66,11 @@ />