mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
30 lines
555 B
C
30 lines
555 B
C
#ifndef __Systime__
|
|
#define __Systime__
|
|
|
|
#ifdef _WIN32
|
|
#ifdef _WINSOCK2API_
|
|
#define _timeval_
|
|
#endif
|
|
#ifndef _timeval_
|
|
#define _timeval_
|
|
/*
|
|
* Structure returned by gettimeofday(2) system call,
|
|
* and used in other calls.
|
|
*/
|
|
struct timeval {
|
|
long tv_sec; /* seconds */
|
|
long tv_usec; /* and microseconds */
|
|
};
|
|
|
|
#endif _timeval_
|
|
|
|
struct timezone {
|
|
int tz_minuteswest; /* minutes west of Greenwich */
|
|
int tz_dsttime; /* type of dst correction */
|
|
};
|
|
|
|
int gettimeofday( struct timeval* p_tv, struct timezone* p_tz );
|
|
|
|
#endif _Win32
|
|
|
|
#endif __Systime__
|