diff options
| author | mattn <[email protected]> | 2012-05-08 11:17:02 +0900 |
|---|---|---|
| committer | mattn <[email protected]> | 2012-05-08 11:17:02 +0900 |
| commit | 46d8941db6213ce22d34bb9b8bedd8e5405e5aa8 (patch) | |
| tree | 947f25165b3d9b01d02d2e03292f6c86f5d49348 /src | |
| parent | 8b1a10ce4b5979cdad6531c3b6bc634ee868dcec (diff) | |
| download | mruby-46d8941db6213ce22d34bb9b8bedd8e5405e5aa8.tar.gz mruby-46d8941db6213ce22d34bb9b8bedd8e5405e5aa8.zip | |
fix #ifdef to pass on windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c index a703b9ccc..f236b2a77 100644 --- a/src/time.c +++ b/src/time.c @@ -40,7 +40,7 @@ #ifndef NO_GETTIMEOFDAY #include <sys/time.h> #endif -#ifndef NO_GMTIME_R +#ifdef NO_GMTIME_R #define gmtime_r(t,r) gmtime(t) #define localtime_r(t,r) (tzset(),localtime(t)) #endif @@ -138,7 +138,7 @@ mrb_time_update_datetime(struct mrb_time *self) aid = localtime_r(&self->sec, &self->datetime); } if(!aid) return NULL; -#ifndef NO_GMTIME_R +#ifdef NO_GMTIME_R self->datetime = *aid; // copy data #endif |
