| 1 | /* time.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _TIME_H
|
|---|
| 4 | #define _TIME_H
|
|---|
| 5 |
|
|---|
| 6 | #if defined (__cplusplus)
|
|---|
| 7 | extern "C" {
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | #if !defined (_SIZE_T)
|
|---|
| 11 | #define _SIZE_T
|
|---|
| 12 | typedef unsigned long size_t;
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #if !defined (NULL)
|
|---|
| 16 | #if defined (__cplusplus)
|
|---|
| 17 | #define NULL 0
|
|---|
| 18 | #else
|
|---|
| 19 | #define NULL ((void *)0)
|
|---|
| 20 | #endif
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | #if !defined (_TIME_T)
|
|---|
| 24 | #define _TIME_T
|
|---|
| 25 | typedef unsigned long time_t;
|
|---|
| 26 | #endif
|
|---|
| 27 |
|
|---|
| 28 | #if !defined (_CLOCK_T)
|
|---|
| 29 | #define _CLOCK_T
|
|---|
| 30 | typedef long clock_t;
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | #if !defined (_TM)
|
|---|
| 34 | #define _TM
|
|---|
| 35 | struct tm /* cf. <emx/thread.h> */
|
|---|
| 36 | {
|
|---|
| 37 | int tm_sec; /* 0..59 */
|
|---|
| 38 | int tm_min; /* 0..59 */
|
|---|
| 39 | int tm_hour; /* 0..23 */
|
|---|
| 40 | int tm_mday; /* 1..31 */
|
|---|
| 41 | int tm_mon; /* 0..11 */
|
|---|
| 42 | int tm_year; /* 0(:=1900).. */
|
|---|
| 43 | int tm_wday; /* 0..6 */
|
|---|
| 44 | int tm_yday; /* 0..365 */
|
|---|
| 45 | int tm_isdst; /* 0 */
|
|---|
| 46 | };
|
|---|
| 47 | #endif
|
|---|
| 48 |
|
|---|
| 49 | #if !defined (CLOCKS_PER_SEC)
|
|---|
| 50 | #define CLOCKS_PER_SEC 100
|
|---|
|
|---|