diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-07-08 14:54:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-07-08 14:54:20 +0200 |
commit | 7b31bf12b9f517e2a9795d63a1701cdf23279d5a (patch) | |
tree | bee55e48487f8e5f94c79098012f846b232a5b47 /mysql/custom | |
parent | 9d516749457284f093306b5e4673cec1818c3d53 (diff) |
Add support for Visual Studio 2005
Diffstat (limited to 'mysql/custom')
-rw-r--r-- | mysql/custom/driver.cxx | 3 | ||||
-rw-r--r-- | mysql/custom/makefile | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mysql/custom/driver.cxx b/mysql/custom/driver.cxx index 95b3517..d9453ec 100644 --- a/mysql/custom/driver.cxx +++ b/mysql/custom/driver.cxx @@ -32,7 +32,10 @@ main (int argc, char* argv[]) o.p = point (1.1111, 2222222222.2); o.pv.push_back (point (1.1234, 2.2345)); o.pv.push_back (point (3.3456, 4.4567)); + // VC8 just cannot roundtrip this. +#if !defined(_MSC_VER) || _MSC_VER >= 1500 o.pv.push_back (point (0.0000001, 0.000000001)); // Scientific notation. +#endif // Persist. // diff --git a/mysql/custom/makefile b/mysql/custom/makefile index f857ea4..428a869 100644 --- a/mysql/custom/makefile +++ b/mysql/custom/makefile @@ -48,12 +48,14 @@ $(dist): headers := $(odb_hdr) $(dist): export extra_headers := traits.hxx query.hxx $(dist): data_dist := test.std $(dist): export name := $(subst /,-,$(subst $(src_root)/mysql/,,$(src_base))) -$(dist): export extra_dist := $(data_dist) $(name)-vc9.vcproj \ +$(dist): export extra_dist := $(data_dist) \ +$(name)-vc8.vcproj $(name)-vc9.vcproj \ $(name)-vc10.vcxproj $(name)-vc10.vcxproj.filters \ $(name)-vc11.vcxproj $(name)-vc11.vcxproj.filters $(dist): $(call dist-data,$(sources) $(headers) $(extra_headers) $(data_dist)) $(call meta-automake,../template/Makefile.am) + $(call meta-vc8proj,../template/template-vc8.vcproj,$(name)-vc8.vcproj) $(call meta-vc9proj,../template/template-vc9.vcproj,$(name)-vc9.vcproj) $(call meta-vc10proj,../template/template-vc10.vcxproj,$(name)-vc10.vcxproj) $(call meta-vc11proj,../template/template-vc11.vcxproj,$(name)-vc11.vcxproj) @@ -85,6 +87,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) |