ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSYS2/mingw32/i686-w64-mingw32/include/_timeval.h
Revision: 1166
Committed: Tue Oct 26 14:22:36 2021 UTC (4 years ago) by rossy
Content type: text/x-chdr
File size: 620 byte(s)
Log Message:
Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File Contents

# Content
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 #ifndef _TIMEVAL_DEFINED
8 #define _TIMEVAL_DEFINED
9
10 struct timeval
11 {
12 long tv_sec;
13 long tv_usec;
14 };
15
16 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
17 #define timercmp(tvp,uvp,cmp) \
18 ((tvp)->tv_sec cmp (uvp)->tv_sec || \
19 ((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec))
20 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
21
22 #endif /* _TIMEVAL_DEFINED */
23