X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Ftime.h;h=784685d0d037fb24dc59f28d7683e50d0fcb8915;hb=f2e874bbb30fa8857975a683a17dce7669524520;hp=aeda70f71005f2a4c4ef238a167d31fbe1324a05;hpb=3f035390c831709593428e88bb1c640604434d60;p=pdclib.old diff --git a/includes/time.h b/includes/time.h index aeda70f..784685d 100644 --- a/includes/time.h +++ b/includes/time.h @@ -1,15 +1,33 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Provides a time datatype and time handling functions. -// ---------------------------------------------------------------------------- - -#ifndef __TIME_H -#define __TIME_H __TIME_H - -// TODO - -#endif // __TIME_H +#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 + +time_t time(time_t* t); + +_PDCLIB_END_EXTERN_C +#endif