X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Ftime.h;h=fbc47db90e7cf5f62225f8ecf4d78ad7c46263fa;hp=f24789e42d68789fdb73dbcf22ab8397434058ba;hb=d84923d89e4fe46877334cbaa5e4549f2c4cb8a6;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347 diff --git a/include/time.h b/include/time.h index f24789e4..fbc47db9 100644 --- a/include/time.h +++ b/include/time.h @@ -5,11 +5,7 @@ extern "C" { #endif -#if __STDC_VERSION__ >= 199901L -#define __restrict restrict -#elif !defined(__GNUC__) -#define __restrict -#endif +#include #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 *);