ext/ox/dump.c in ox-2.14.6 vs ext/ox/dump.c in ox-2.14.7

- old
+ new

@@ -509,11 +509,11 @@ } static void dump_time_xsd(Out out, VALUE obj) { struct tm *tm; -#if HAS_RB_TIME_TIMESPEC +#if HAVE_RB_TIME_TIMESPEC struct timespec ts = rb_time_timespec(obj); time_t sec = ts.tv_sec; long nsec = ts.tv_nsec; #else time_t sec = NUM2LONG(rb_funcall2(obj, ox_tv_sec_id, 0, 0)); @@ -526,10 +526,10 @@ if (out->end - out->cur <= 33) { grow(out, 33); } /* 2010-07-09T10:47:45.895826+09:00 */ tm = localtime(&sec); -#if HAS_TM_GMTOFF +#if HAVE_ST_TM_GMTOFF if (0 > tm->tm_gmtoff) { tzsign = '-'; tzhour = (int)(tm->tm_gmtoff / -3600); tzmin = (int)(tm->tm_gmtoff / -60) - (tzhour * 60); } else {