From cc6a67b76a09660b27fea50856f49cfdfe013da0 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/boost/date-time/mysql/posix-time-traits.hxx | 5 +- odb/boost/libodb-boost-vc8.vcproj | 352 ++++++++++++++++++++++++ odb/boost/makefile | 4 +- 3 files changed, 359 insertions(+), 2 deletions(-) create mode 100644 odb/boost/libodb-boost-vc8.vcproj (limited to 'odb') diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx index 2f40445..9750d12 100644 --- a/odb/boost/date-time/mysql/posix-time-traits.hxx +++ b/odb/boost/date-time/mysql/posix-time-traits.hxx @@ -210,7 +210,10 @@ namespace odb i.minute = std::abs (v.minutes ()); i.second = std::abs (v.seconds ()); - unsigned long long ms (std::abs (v.fractional_seconds ())); + // Some compilers, e.g., VC8, don't have 64-bit abs() overload. + // + time_duration::fractional_seconds_type sms (v.fractional_seconds ()); + unsigned long long ms (sms >= 0 ? sms : -sms); ms = ms * 1000000ULL / time_duration::ticks_per_second (); i.second_part = static_cast (ms); } diff --git a/odb/boost/libodb-boost-vc8.vcproj b/odb/boost/libodb-boost-vc8.vcproj new file mode 100644 index 0000000..c4e144e --- /dev/null +++ b/odb/boost/libodb-boost-vc8.vcproj @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +__source_entries__(sources) + + +__file_entries__(headers) + + + + + diff --git a/odb/boost/makefile b/odb/boost/makefile index 376f658..0f812ad 100644 --- a/odb/boost/makefile +++ b/odb/boost/makefile @@ -55,7 +55,7 @@ $(dist): export headers = $(subst $(src_base)/,,$(shell find $(src_base) \ -name '*.hxx' -o -name '*.ixx' -o -name '*.txx')) $(dist): export options = $(subst $(src_base)/,,$(shell find $(src_base) \ -name '*.options')) -$(dist): export extra_dist := libodb-boost-vc9.vcproj \ +$(dist): export extra_dist := libodb-boost-vc8.vcproj libodb-boost-vc9.vcproj \ libodb-boost-vc10.vcxproj libodb-boost-vc10.vcxproj.filters \ libodb-boost-vc11.vcxproj libodb-boost-vc11.vcxproj.filters $(dist): export interface_version = $(shell sed -e \ @@ -63,6 +63,7 @@ $(dist): export interface_version = $(shell sed -e \ $(dist): $(call dist-data,$(sources) $(headers) $(options) details/config.h.in) + $(call meta-vc8proj,$(src_base)/libodb-boost-vc8.vcproj) $(call meta-vc9proj,$(src_base)/libodb-boost-vc9.vcproj) $(call meta-vc10proj,$(src_base)/libodb-boost-vc10.vcxproj) $(call meta-vc11proj,$(src_base)/libodb-boost-vc11.vcxproj) @@ -90,6 +91,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