Skip to content
Snippets Groups Projects
Commit 4fa6dfa5 authored by sof's avatar sof
Browse files

[project @ 1997-11-24 20:39:33 by sof]

Bogus workaround to get cygwin32-b18 apps using Time compile and link
parent 87bb85a3
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,12 @@
#define SETZONE(x,z) (((struct tm *)x)->tm_zone = z)
#define GMTOFF(x) (((struct tm *)x)->tm_gmtoff)
#else /* ! HAVE_TM_ZONE */
# if HAVE_TZNAME
# if HAVE_TZNAME || cygwin32_TARGET_OS
#if cygwin32_TARGET_OS
extern char *tzname;
#else
extern char *tzname[2];
#endif
# define ZONE(x) (((struct tm *)x)->tm_isdst ? tzname[1] : tzname[0])
# define SETZONE(x,z)
# else /* ! HAVE_TZNAME */
......
......@@ -9,6 +9,11 @@
#include "timezone.h"
#include "stgio.h"
#ifdef cygwin32_TARGET_OS
extern char *_tzname;
char *tzname;
#endif
StgAddr
toUTCTime(I_ size, StgByteArray d, StgByteArray res)
{
......
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