diff options
| author | Mitchell Hashimoto <[email protected]> | 2014-03-13 23:13:33 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <[email protected]> | 2014-03-13 23:23:28 -0700 |
| commit | 3843a286b6e3cd68cc8a1ef5eadfb9a814b49c5a (patch) | |
| tree | b46bb6589830f7c18eeb80ab6ebe51e6c320e089 /mrbgems/mruby-time/src | |
| parent | 94df66fb08c91135a4c37731fabf6f521a940bb0 (diff) | |
| download | mruby-3843a286b6e3cd68cc8a1ef5eadfb9a814b49c5a.tar.gz mruby-3843a286b6e3cd68cc8a1ef5eadfb9a814b49c5a.zip | |
Don't redefine timeval on MingW64 environments
Diffstat (limited to 'mrbgems/mruby-time/src')
| -rw-r--r-- | mrbgems/mruby-time/src/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 3ba3c66ba..be011ddee 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/mrbgems/mruby-time/src/time.c @@ -53,10 +53,14 @@ # endif typedef long suseconds_t; + +# ifndef __MINGW64__ struct timeval { time_t tv_sec; suseconds_t tv_usec; }; +# endif + static int gettimeofday(struct timeval *tv, void *tz) { |
