diff options
author | Johnny Willemsen <jwillemsen@users.noreply.github.com> | 2016-09-05 09:32:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-05 09:32:25 +0200 |
commit | 4309725bbebeb3fb6027766915fd2f6922f54eea (patch) | |
tree | d7a8805a0e60b125dbe1187a7effaab36bdbbcd3 /ACE/ace/OS_NS_time.h | |
parent | e13ee56ffabd908059f5bc74c85d22370ea39412 (diff) | |
download | ATCD-4309725bbebeb3fb6027766915fd2f6922f54eea.tar.gz |
Revert "Handle system functions that may be defined as macros on some platforms"revert-262-master
Diffstat (limited to 'ACE/ace/OS_NS_time.h')
-rw-r--r-- | ACE/ace/OS_NS_time.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ACE/ace/OS_NS_time.h b/ACE/ace/OS_NS_time.h index 4fddbdb1571..11d226ea28b 100644 --- a/ACE/ace/OS_NS_time.h +++ b/ACE/ace/OS_NS_time.h @@ -90,47 +90,6 @@ inline long ace_timezone() #endif } -/* - * We inline and undef some functions that may be implemented - * as macros on some platforms. This way macro definitions will - * be usable later as there is no way to save the macro definition - * using the pre-processor. - */ -#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) - return asctime_r (t, buf); -# undef asctime_r -# else - return ACE_STD_NAMESPACE::asctime_r (t, buf); -# endif /* asctime_r */ -} -#endif /* !ACE_LACKS_ASCTIME_R && !ACE_HAS_TR24731_2005_CRT */ - -#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) - return gmtime_r (clock, res); -# undef gmtime_r -# else - return ACE_STD_NAMESPACE::gmtime_r (clock, res); -# endif /* gmtime_r */ -} -#endif /* !ACE_LACKS_GMTIME_R && !ACE_HAS_TR24731_2005_CRT */ - -#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) - return localtime_r (clock, res); -# undef localtime_r -# else - return ACE_STD_NAMESPACE::localtime_r (clock, res); -# endif /* 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) \ |