Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-06-28 03:58:38 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-06-28 03:58:38 +0400
commitc1a3171f2dae463528fda965bac53e1adb34c688 (patch)
treecad852e99d8ad350a33afd8078b985a7cbbb90ab /newlib/libc/include/time.h
parent533b4e664428a0ddd218eb62f0dc78f0a87ff079 (diff)
2002-06-27 Benjamin Kosnik <bkoz@redhat.com>
* 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.
Diffstat (limited to 'newlib/libc/include/time.h')
-rw-r--r--newlib/libc/include/time.h28
1 files changed, 24 insertions, 4 deletions
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 <sys/reent.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifndef NULL
#define NULL 0
#endif
@@ -32,6 +28,8 @@ extern "C" {
#include <sys/types.h>
+_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 <sys/features.h>
#if defined(_POSIX_TIMERS)
#include <signal.h>
+#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_ */