[ros-diffs] [tkreuzer] 39324: time.h: rename include guard to _INC_TIME, remove localtime_s and localtime_r definition, define asctime_s only if __STDC_WANT_SECURE_LIB is defined.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Feb 3 15:34:31 CET 2009


Author: tkreuzer
Date: Tue Feb  3 08:34:30 2009
New Revision: 39324

URL: http://svn.reactos.org/svn/reactos?rev=39324&view=rev
Log:
time.h: rename include guard to _INC_TIME, remove localtime_s and localtime_r definition, define asctime_s only if __STDC_WANT_SECURE_LIB is defined.

Modified:
    branches/ros-amd64-bringup/reactos/include/crt/time.h

Modified: branches/ros-amd64-bringup/reactos/include/crt/time.h
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/include/crt/time.h?rev=39324&r1=39323&r2=39324&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/crt/time.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/crt/time.h [iso-8859-1] Tue Feb  3 08:34:30 2009
@@ -3,8 +3,8 @@
  * This file is part of the w64 mingw-runtime package.
  * No warranty is given; refer to the file DISCLAIMER within this package.
  */
-#ifndef _TIME_H_
-#define _TIME_H_
+#ifndef _INC_TIME
+#define _INC_TIME
 
 #include <crtdefs.h>
 
@@ -114,10 +114,11 @@
   _CRT_OBSOLETE(GetLocalTime) unsigned __cdecl _getsystime(struct tm *_Tm);
   _CRT_OBSOLETE(GetLocalTime) unsigned __cdecl _setsystime(struct tm *_Tm,unsigned _MilliSec);
 
+#ifdef __STDC_WANT_SECURE_LIB__
   _CRTIMP errno_t __cdecl asctime_s(char *_Buf,size_t _SizeInWords,const struct tm *_Tm);
+#endif
   _CRTIMP errno_t __cdecl _ctime32_s(char *_Buf,size_t _SizeInBytes,const __time32_t *_Time);
   _CRTIMP errno_t __cdecl _gmtime32_s(struct tm *_Tm,const __time32_t *_Time);
-  _CRTIMP errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time);
   _CRTIMP errno_t __cdecl _localtime32_s(struct tm *_Tm,const __time32_t *_Time);
   _CRTIMP errno_t __cdecl _strdate_s(char *_Buf,size_t _SizeInBytes);
   _CRTIMP errno_t __cdecl _strtime_s(char *_Buf ,size_t _SizeInBytes);
@@ -173,8 +174,6 @@
  _CRTIMP char *__cdecl ctime(const time_t *_Time);
  _CRTIMP struct tm *__cdecl gmtime(const time_t *_Time);
  _CRTIMP struct tm *__cdecl localtime(const time_t *_Time);
- _CRTIMP struct tm *__cdecl localtime_r(const time_t *_Time,struct tm *);
-
  _CRTIMP time_t __cdecl mktime(struct tm *_Tm);
  _CRTIMP time_t __cdecl _mkgmtime(struct tm *_Tm);
  _CRTIMP time_t __cdecl time(time_t *_Time);
@@ -216,5 +215,5 @@
 
 #pragma pack(pop)
 
-#endif /* End _TIME_H_ */
-
+#endif /* End _INC_TIME */
+



More information about the Ros-diffs mailing list