int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
{
struct tm *tm;
+#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_DARWIN)
+ struct tm data;
+#endif
int offset;
int year;
t -= offset*60; /* FIXME: may overflow in extreme cases */
#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_DARWIN)
- { struct tm data; gmtime_r(&t, &data); tm = &data; }
+ gmtime_r(&t, &data);
+ tm = &data;
#else
tm = gmtime(&t);
#endif