From 94b55ca0ee376b0c31f47d611031571a0c5479b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Jul 2013 14:54:19 +0200 Subject: Add support for Visual Studio 2005 --- odb/exceptions.hxx | 36 +++--- odb/libodb-vc8.vcproj | 351 ++++++++++++++++++++++++++++++++++++++++++++++++++ odb/makefile | 5 +- 3 files changed, 373 insertions(+), 19 deletions(-) create mode 100644 odb/libodb-vc8.vcproj (limited to 'odb') diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index e4d8292..a5f8582 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -16,7 +16,7 @@ namespace odb { - struct LIBODB_EXPORT null_pointer: exception + struct LIBODB_EXPORT null_pointer: odb::exception { virtual const char* what () const throw (); @@ -24,19 +24,19 @@ namespace odb // Transaction exceptions. // - struct LIBODB_EXPORT already_in_transaction: exception + struct LIBODB_EXPORT already_in_transaction: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT not_in_transaction: exception + struct LIBODB_EXPORT not_in_transaction: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT transaction_already_finalized: exception + struct LIBODB_EXPORT transaction_already_finalized: odb::exception { virtual const char* what () const throw (); @@ -44,19 +44,19 @@ namespace odb // Session exceptions. // - struct LIBODB_EXPORT already_in_session: exception + struct LIBODB_EXPORT already_in_session: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT not_in_session: exception + struct LIBODB_EXPORT not_in_session: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT session_required: exception + struct LIBODB_EXPORT session_required: odb::exception { virtual const char* what () const throw (); @@ -64,7 +64,7 @@ namespace odb // Database operations exceptions. // - struct LIBODB_EXPORT recoverable: exception + struct LIBODB_EXPORT recoverable: odb::exception { }; @@ -86,43 +86,43 @@ namespace odb what () const throw (); }; - struct LIBODB_EXPORT object_not_persistent: exception + struct LIBODB_EXPORT object_not_persistent: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT object_already_persistent: exception + struct LIBODB_EXPORT object_already_persistent: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT object_changed: exception + struct LIBODB_EXPORT object_changed: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT result_not_cached: exception + struct LIBODB_EXPORT result_not_cached: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT database_exception: exception + struct LIBODB_EXPORT database_exception: odb::exception { }; // Polymorphism support exceptions. // - struct LIBODB_EXPORT abstract_class: exception + struct LIBODB_EXPORT abstract_class: odb::exception { virtual const char* what () const throw (); }; - struct LIBODB_EXPORT no_type_info: exception + struct LIBODB_EXPORT no_type_info: odb::exception { virtual const char* what () const throw (); @@ -130,7 +130,7 @@ namespace odb // Prepared query support exceptions. // - struct LIBODB_EXPORT prepared_already_cached: exception + struct LIBODB_EXPORT prepared_already_cached: odb::exception { prepared_already_cached (const char* name); ~prepared_already_cached () throw (); @@ -149,7 +149,7 @@ namespace odb std::string what_; }; - struct LIBODB_EXPORT prepared_type_mismatch: exception + struct LIBODB_EXPORT prepared_type_mismatch: odb::exception { prepared_type_mismatch (const char* name); ~prepared_type_mismatch () throw (); @@ -170,7 +170,7 @@ namespace odb // Schema catalog exceptions. // - struct LIBODB_EXPORT unknown_schema: exception + struct LIBODB_EXPORT unknown_schema: odb::exception { unknown_schema (const std::string& name); ~unknown_schema () throw (); diff --git a/odb/libodb-vc8.vcproj b/odb/libodb-vc8.vcproj new file mode 100644 index 0000000..00a668e --- /dev/null +++ b/odb/libodb-vc8.vcproj @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +__source_entries__(sources) +__source_entries__(win32_threads_sources) +__source_entries__(win32_dll_sources) + + +__file_entries__(headers) +__file_entry__(details\config-vc.h) + + + + + diff --git a/odb/makefile b/odb/makefile index 70128cb..6a2cca4 100644 --- a/odb/makefile +++ b/odb/makefile @@ -131,7 +131,8 @@ h,$(win32_headers),$(filter-out $h,$(subst $(src_base)/,,$(shell find \ $(src_base)/details/win32 -name '*.hxx' -o -name '*.ixx' -o -name '*.txx')))) $(dist): data_dist := details/config-vc.h -$(dist): export extra_dist := $(data_dist) libodb-vc9.vcproj \ +$(dist): export extra_dist := $(data_dist) \ +libodb-vc8.vcproj libodb-vc9.vcproj \ libodb-vc10.vcxproj libodb-vc10.vcxproj.filters \ libodb-vc11.vcxproj libodb-vc11.vcxproj.filters $(dist): export interface_version = $(shell sed -e \ @@ -142,6 +143,7 @@ $(dist): $(win32_threads_sources) $(win32_dll_sources) $(headers) \ $(posix_threads_headers) $(win32_headers) $(win32_threads_headers) \ $(data_dist) details/config.h.in) + $(call meta-vc8proj,$(src_base)/libodb-vc8.vcproj) $(call meta-vc9proj,$(src_base)/libodb-vc9.vcproj) $(call meta-vc10proj,$(src_base)/libodb-vc10.vcxproj) $(call meta-vc11proj,$(src_base)/libodb-vc11.vcxproj) @@ -169,6 +171,7 @@ endif # How to. # $(call include,$(bld_root)/dist.make) +$(call include,$(bld_root)/meta/vc8proj.make) $(call include,$(bld_root)/meta/vc9proj.make) $(call include,$(bld_root)/meta/vc10proj.make) $(call include,$(bld_root)/meta/vc11proj.make) -- cgit v1.1