summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/localtime.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index ca58b65e1..d57a020b5 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -500,7 +500,11 @@ static int tzload(timezone_t sp, const char * name,
int doextend);
static int tzparse(timezone_t sp, const char * name,
int lastditch);
+#ifdef __CYGWIN__
+extern "C" void tzset_unlocked(void);
+#else
static void tzset_unlocked(void);
+#endif
static long leapcorr(const timezone_t sp, time_t * timep);
static timezone_t lclptr;
@@ -1613,6 +1617,9 @@ tzsetwall (void)
static NO_COPY muto tzset_guard;
+#ifdef __CYGWIN__
+extern "C"
+#else
#ifndef STD_INSPIRED
/*
** A non-static declaration of tzsetwall in a system header file
@@ -1620,6 +1627,7 @@ static NO_COPY muto tzset_guard;
*/
static
#endif /* !defined STD_INSPIRED */
+#endif
void
tzset_unlocked(void)
{
@@ -1663,6 +1671,8 @@ tzset_unlocked(void)
settzname();
}
+EXPORT_ALIAS (tzset_unlocked, _tzset_unlocked)
+
extern "C" void
tzset(void)
{