diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-08 11:55:30 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-08 11:55:30 +0900 |
| commit | 15e57db1352861aab23573fd331293bb1063f182 (patch) | |
| tree | faccd321000a959752b79a3c95d44c0895b5d844 | |
| parent | 98953cdb8fa04aebea57ad483b8f96b8922b274a (diff) | |
| parent | 766f176b6b0ca3cd647e3857df93f4fa5fd8cd41 (diff) | |
| download | mruby-15e57db1352861aab23573fd331293bb1063f182.tar.gz mruby-15e57db1352861aab23573fd331293bb1063f182.zip | |
Merge branch 'master' of github.com:mruby/mruby
| -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 |
