summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2007-02-14 21:02:07 +0000
committerMagnus Hagander2007-02-14 21:02:07 +0000
commit565e925c4151536a74e620357abf947f221278e9 (patch)
tree696f0f777a98e6a44224908919dab48ea5eaf7b8
parentee6f7c273ed54438f3939d805e34ba2f2c6bffbc (diff)
Make it possible to build with integer datetimes in msvc, and enable by default.
-rw-r--r--src/tools/msvc/Solution.pm1
-rw-r--r--src/tools/msvc/config.pl1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 79a3d82790..9fbb4b9b43 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -83,6 +83,7 @@ sub GenerateFiles {
}
print O "/* defines added by config steps */\n";
print O "#define USE_ASSERT_CHECKING 1\n" if ($self->{options}->{asserts});
+ print O "#define USE_INTEGER_DATETIMES 1\n" if ($self->{options}->{integer_datetimes});
print O "#define USE_LDAP 1\n" if ($self->{options}->{ldap});
print O "#define HAVE_LIBZ 1\n" if ($self->{options}->{zlib});
print O "#define USE_SSL 1\n" if ($self->{options}->{openssl});
diff --git a/src/tools/msvc/config.pl b/src/tools/msvc/config.pl
index 56de6139c1..bdf101f72d 100644
--- a/src/tools/msvc/config.pl
+++ b/src/tools/msvc/config.pl
@@ -4,6 +4,7 @@ use warnings;
our $config = {
asserts=>1, # --enable-cassert
+ integer_datetimes=>1, # --enable-integer-datetimes
nls=>undef, # --enable-nls=<path>
tcl=>'c:\tcl', # --with-tls=<path>
perl=>'c:\perl', # --with-perl