diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-01-23 22:51:44 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-01-24 00:56:53 +0200 |
commit | 4d5c0f7114d081fe9daf6d221eafef5d225f38fb (patch) | |
tree | 70597e9ac15e3499d810707856268fee22d7ab23 | |
parent | 2643ec29f7b6b094caa854d4ff3c348036215f64 (diff) |
Fix compilation on 64-bit Windows
No need to force use of 32-bit time_t (which doesn't exist for 64-bit
Windows), just use defaults.
-rw-r--r-- | rsc/source/rscpp/cpp3.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/rsc/source/rscpp/cpp3.c b/rsc/source/rscpp/cpp3.c index 0eec69a50ba3..faf4ed07f658 100644 --- a/rsc/source/rscpp/cpp3.c +++ b/rsc/source/rscpp/cpp3.c @@ -25,10 +25,6 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#if defined(_MSC_VER) && (_MSC_VER > 1310) -#define _USE_32BIT_TIME_T -#endif - #include <stdio.h> #ifdef UNX #include <stdlib.h> @@ -467,7 +463,7 @@ void initdefines() register char *tp; register DEFBUF *dp; int i; - long tvec; + time_t tvec; #if !defined( ZTC ) && !defined( WNT ) && !defined(BLC) && !defined(G3) extern char *ctime(); @@ -505,9 +501,9 @@ void initdefines() dp = defendel("__DATE__", FALSE); dp->repl = tp = getmem(27); dp->nargs = DEF_NOARGS; - time( (time_t*)&tvec); + time( &tvec); *tp++ = '"'; - strcpy(tp, ctime((const time_t*)&tvec)); + strcpy(tp, ctime(&tvec)); tp[24] = '"'; /* Overwrite newline */ #endif } |