Make _CLOCK_T_ system configurable

Let systems optionally provide the _CLOCK_T_ type via
<machine/_types.h>.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2017-08-24 15:26:03 +02:00
parent 406bd10fb4
commit 7b2c362190
1 changed files with 3 additions and 0 deletions

View File

@ -180,7 +180,10 @@ typedef _LOCK_RECURSIVE_T _flock_t;
typedef void *_iconv_t;
#endif
#ifndef __machine_clock_t_defined
#define _CLOCK_T_ unsigned long /* clock() */
#endif
typedef _CLOCK_T_ __clock_t;
#define _TIME_T_ long /* time() */