From c4f77c4178fbd6546342ddf55a2ffc92af91729c Mon Sep 17 00:00:00 2001 From: Olli Savia Date: Sat, 3 Sep 2016 14:55:28 +0300 Subject: Added a check for ACE_HAS_TR24731_2005_CRT --- ACE/ace/OS_NS_time.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ACE/ace/OS_NS_time.h b/ACE/ace/OS_NS_time.h index dec111def52..4fddbdb1571 100644 --- a/ACE/ace/OS_NS_time.h +++ b/ACE/ace/OS_NS_time.h @@ -96,7 +96,7 @@ inline long ace_timezone() * be usable later as there is no way to save the macro definition * using the pre-processor. */ -#if !defined (ACE_LACKS_ASCTIME_R) +#if !defined (ACE_LACKS_ASCTIME_R) && !defined (ACE_HAS_TR24731_2005_CRT) inline char *ace_asctime_r_helper (const struct tm *t, char *buf) { # if defined (asctime_r) @@ -106,9 +106,9 @@ inline char *ace_asctime_r_helper (const struct tm *t, char *buf) return ACE_STD_NAMESPACE::asctime_r (t, buf); # endif /* asctime_r */ } -#endif /* !ACE_LACKS_ASCTIME_R */ +#endif /* !ACE_LACKS_ASCTIME_R && !ACE_HAS_TR24731_2005_CRT */ -#if !defined (ACE_LACKS_GMTIME_R) +#if !defined (ACE_LACKS_GMTIME_R) && !defined (ACE_HAS_TR24731_2005_CRT) inline struct tm *ace_gmtime_r_helper (const time_t *clock, struct tm *res) { # if defined (gmtime_r) @@ -118,9 +118,9 @@ inline struct tm *ace_gmtime_r_helper (const time_t *clock, struct tm *res) return ACE_STD_NAMESPACE::gmtime_r (clock, res); # endif /* gmtime_r */ } -#endif /* !ACE_LACKS_GMTIME_R */ +#endif /* !ACE_LACKS_GMTIME_R && !ACE_HAS_TR24731_2005_CRT */ -#if !defined (ACE_LACKS_LOCALTIME_R) +#if !defined (ACE_LACKS_LOCALTIME_R) && !defined (ACE_HAS_TR24731_2005_CRT) inline struct tm *ace_localtime_r_helper (const time_t *clock, struct tm *res) { # if defined (localtime_r) @@ -130,7 +130,7 @@ inline struct tm *ace_localtime_r_helper (const time_t *clock, struct tm *res) return ACE_STD_NAMESPACE::localtime_r (clock, res); # endif /* localtime_r */ } -#endif /* !ACE_LACKS_LOCALTIME_R */ +#endif /* !ACE_LACKS_LOCALTIME_R && !ACE_HAS_TR24731_2005_CRT */ #if !defined (ACE_LACKS_DIFFTIME) # if defined (_WIN32_WCE) && ((_WIN32_WCE >= 0x600) && (_WIN32_WCE <= 0x700)) && !defined (_USE_32BIT_TIME_T) \ -- cgit v1.2.1