setjmp.h: add struct tag for sigjmp_buf (GCC C++ compatibility)
[musl] / include / time.h
index f24789e..fbc47db 100644 (file)
@@ -5,11 +5,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
 
 #undef NULL
 #ifdef __cplusplus
@@ -49,6 +45,10 @@ struct tm
        long __tm_gmtoff;
        const char *__tm_zone;
 };
+#if defined(_BSD_SOURCE)
+#define tm_gmtoff __tm_gmtoff
+#define tm_zone __tm_zone
+#endif
 
 clock_t clock (void);
 time_t time (time_t *);