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:
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_ */