]> pd.if.org Git - pdclib.old/blob - includes/time.h
PDCLIB-2 PDCLIB-9 wcrtomb
[pdclib.old] / includes / time.h
1 #ifndef _PDCLIB_TIME_H\r
2 #define _PDCLIB_TIME_H\r
3 #include <_PDCLIB_aux.h>\r
4 #include <_PDCLIB_int.h>\r
5 \r
6 _PDCLIB_BEGIN_EXTERN_C\r
7 #ifndef _PDCLIB_SIZE_T_DEFINED\r
8 #define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED\r
9 typedef _PDCLIB_size_t size_t;\r
10 #endif\r
11 \r
12 #ifndef _PDCLIB_NULL_DEFINED\r
13 #define _PDCLIB_NULL_DEFINED _PDCLIB_NULL_DEFINED\r
14 #define NULL _PDCLIB_NULL\r
15 #endif\r
16 \r
17 typedef _PDCLIB_time_t  time_t;\r
18 typedef _PDCLIB_clock_t clock_t;\r
19 \r
20 #define TIME_UTC _PDCLIB_TIME_UTC\r
21 \r
22 #ifndef _PDCLIB_STRUCT_TIMESPEC_DEFINED\r
23 #define _PDCLIB_STRUCT_TIMESPEC_DEFINED\r
24 _PDCLIB_DEFINE_STRUCT_TIMESPEC()\r
25 #endif\r
26 \r
27 #ifndef _PDCLIB_STRUCT_TM_DEFINED\r
28 #define _PDCLIB_STRUCT_TM_DEFINED\r
29 _PDCLIB_DEFINE_STRUCT_TM()\r
30 #endif\r
31 \r
32 time_t time( time_t* t ) _PDCLIB_nothrow;\r
33 int timespec_get( struct timespec *ts, int base ) _PDCLIB_nothrow;\r
34 \r
35 _PDCLIB_END_EXTERN_C\r
36 #endif\r