X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Ftime.h;fp=includes%2Ftime.h;h=3fc090e2a5a6bab645b7800abe4e82987bd4abc1;hp=0000000000000000000000000000000000000000;hb=b41576197133c1211d6ec353faf93f505f573b8a;hpb=93ca2d813f86c52bb9bece81ca564d4831bff9e5 diff --git a/includes/time.h b/includes/time.h new file mode 100644 index 0000000..3fc090e --- /dev/null +++ b/includes/time.h @@ -0,0 +1,31 @@ +#ifndef _PDCLIB_TIME_H +#define _PDCLIB_TIME_H +#include <_PDCLIB_aux.h> +#include <_PDCLIB_int.h> + +_PDCLIB_BEGIN_EXTERN_C +#ifndef _PDCLIB_SIZE_T_DEFINED +#define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED +typedef _PDCLIB_size_t size_t; +#endif + +#ifndef _PDCLIB_NULL_DEFINED +#define _PDCLIB_NULL_DEFINED _PDCLIB_NULL_DEFINED +#define NULL _PDCLIB_NULL +#endif + +typedef _PDCLIB_time_t time_t; +typedef _PDCLIB_clock_t clock_t; + +#ifndef _PDCLIB_STRUCT_TIMESPEC_DEFINED +#define _PDCLIB_STRUCT_TIMESPEC_DEFINED +_PDCLIB_DEFINE_STRUCT_TIMESPEC() +#endif + +#ifndef _PDCLIB_STRUCT_TM_DEFINED +#define _PDCLIB_STRUCT_TM_DEFINED +_PDCLIB_DEFINE_STRUCT_TM() +#endif + +_PDCLIB_END_EXTERN_C +#endif