cfad47cfa3/t3compiler/tads3/test/data/time.h
Commiter: Nikos Chantziaras
Author: Nikos Chantziaras
Revision: cfad47cfa3
File Size: 840 Bytes
(June 01, 2009 20:54 UTC) Almost 3 years ago
Initial commit.
#if !__STDC__ || defined(_POSIX_) /* Non-ANSI names for compatibility */ #define CLK_TCK CLOCKS_PER_SEC #ifdef _NTSDK /* Declarations and definitions compatible with the NT SDK */ #define daylight _daylight /* timezone cannot be #defined because of <sys/timeb.h> */ #ifndef _POSIX_ #define tzname _tzname #define tzset _tzset #endif /* _POSIX_ */ #else /* ndef _NTSDK */ #if defined(_DLL) && defined(_M_IX86) #define daylight (*__p__daylight()) /* timezone cannot be #defined because of <sys/timeb.h> so CRT DLL for win32s will not have timezone */ _CRTIMP extern long timezone; #define tzname (__p__tzname()) #else /* !(defined(_DLL) && defined(_M_IX86)) */ _CRTIMP extern int daylight; _CRTIMP extern long timezone; _CRTIMP extern char * tzname[2]; #endif /* !(defined(_DLL) && defined(_M_IX86)) */ |