This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Define _USE_32BIT_TIME_T for VC6 and VC7
authorJan Dubois <jand@activestate.com>
Sat, 7 Aug 2010 00:08:38 +0000 (17:08 -0700)
committerJan Dubois <jand@activestate.com>
Sat, 7 Aug 2010 00:08:38 +0000 (17:08 -0700)
commit45f6403b40da58011eab17ad0159b353c7d92509
tree7041a13502d197e5c2cd09d529c9c74d8d96f494
parenta18a68bd95c0722bf1f6b41e3867c270ecfd4ef1
Define _USE_32BIT_TIME_T for VC6 and VC7

In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
64-bit, even in 32-bit mode.  It also provides the _USE_32BIT_TIME_T
preprocessor option to revert back to the old functionality for
backward compatibility.  We define this symbol here for older 32-bit
compilers only (which aren't using it at all) for the sole purpose
of getting it into $Config{ccflags}.  That way if someone builds
Perl itself with e.g. VC6 but later installs an XS module using VC8
the time_t types will still be compatible.
win32/Makefile