Skip to content
Snippets Groups Projects
Commit 3ba13958 authored by rswindell's avatar rswindell
Browse files

I'm pretty sure this wouldn't compile on BSD.

parent 4f09e447
No related branches found
No related tags found
No related merge requests found
......@@ -96,11 +96,11 @@ xpDateTime_t xpDateTime_now(void)
xpTimeZone_t xpTimeZone_local(void)
{
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
struct tm t;
time_t i;
struct tm tm;
time_t t;
localtime_r(&i, &i);
return(t.tm_gmtoff/60);
localtime_r(&t, &tm);
return(tm.tm_gmtoff/60);
#else
#if defined(__BORLANDC__) || defined(__CYGWIN__)
#define timezone _timezone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment