mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-02 13:05:42 +08:00
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:
parent
406bd10fb4
commit
7b2c362190
@ -180,7 +180,10 @@ typedef _LOCK_RECURSIVE_T _flock_t;
|
|||||||
typedef void *_iconv_t;
|
typedef void *_iconv_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __machine_clock_t_defined
|
||||||
#define _CLOCK_T_ unsigned long /* clock() */
|
#define _CLOCK_T_ unsigned long /* clock() */
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef _CLOCK_T_ __clock_t;
|
typedef _CLOCK_T_ __clock_t;
|
||||||
|
|
||||||
#define _TIME_T_ long /* time() */
|
#define _TIME_T_ long /* time() */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user