From c1a3171f2dae463528fda965bac53e1adb34c688 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 27 Jun 2002 23:58:38 +0000 Subject: 2002-06-27 Benjamin Kosnik * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C. * libc/include/time.h: Same. * libc/include/string.h: Same. * libc/include/stdlib.h: Same. * libc/include/signal.h: Same. * libc/include/setjmp.h: Same. * libc/include/math.h: Same. * libc/include/locale.h: Same. * libc/include/ctype.h: Same. * libc/include/machine/setjmp.h: Same. * libc/include/_ansi.h (_BEGIN_STD_C): Add. (_END_STD_C): Add. --- newlib/libc/include/time.h | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'newlib/libc/include/time.h') diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 9b164170c..1ff5b828d 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -10,10 +10,6 @@ #include "_ansi.h" #include -#ifdef __cplusplus -extern "C" { -#endif - #ifndef NULL #define NULL 0 #endif @@ -32,6 +28,8 @@ extern "C" { #include +_BEGIN_STD_C + struct tm { int tm_sec; @@ -62,6 +60,12 @@ char *_EXFUN(ctime_r, (const time_t *, char *)); struct tm *_EXFUN(gmtime_r, (const time_t *, struct tm *)); struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *)); +_END_STD_C + +#ifdef __cplusplus +extern "C" { +#endif + #ifndef __STRICT_ANSI__ char *_EXFUN(strptime, (const char *, const char *, struct tm *)); _VOID _EXFUN(tzset, (_VOID)); @@ -115,12 +119,20 @@ char *_EXFUN(timezone, (void)); #endif /* __CYGWIN__ */ #endif /* !__STRICT_ANSI__ */ +#ifdef __cplusplus +} +#endif + #include #if defined(_POSIX_TIMERS) #include +#ifdef __cplusplus +extern "C" { +#endif + /* Clocks, P1003.1b-1993, p. 263 */ int _EXFUN(clock_settime, (clockid_t clock_id, const struct timespec *tp)); @@ -148,8 +160,15 @@ int _EXFUN(timer_getoverrun, (timer_t timerid)); int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); +#ifdef __cplusplus +} +#endif #endif /* _POSIX_TIMERS */ +#ifdef __cplusplus +extern "C" { +#endif + /* CPU-time Clock Attributes, P1003.4b/D8, p. 54 */ /* values for the clock enable attribute */ @@ -217,5 +236,6 @@ int _EXFUN(clock_getenable_attr, (clockid_t clock_id, int *attr)); #ifdef __cplusplus } #endif + #endif /* _TIME_H_ */ -- cgit v1.2.3