Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-08-02 20:28:18 +0400
committerDJ Delorie <dj@redhat.com>2000-08-02 20:28:18 +0400
commit4c8d72ded51ac22172d4f2d0250ada6b0dd624ff (patch)
tree4573a70b613646456bd4fed93293c6355566c678 /winsup/cygwin/times.cc
parentad8dea13f05b51769c9bef7e414f654588971c10 (diff)
* winsup.h: take out protections of environ, errno, allow C use
* *.cc: put winsup.h before other headers (for __INSIDE_CYGWIN__); use cur_environ() instead of just environ * times.cc: remove import protections * glob.c: add winsup.h * localtime.c: ditto * smallprint.c: ditto * Makefile.in: don't __INSIDE_CYGWIN__ as it messes up profiling.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 738d84f82..28763e180 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -8,10 +8,7 @@ This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
-/* Hide definitions from the library since they contain the
- "dllimport" attribute. */
-#define _timezone dummy_timezone
-#define _daylight dummy_daylight
+#include "winsup.h"
#include <time.h>
#include <sys/times.h>
#include <sys/timeb.h>
@@ -19,12 +16,7 @@ details. */
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
-#include "winsup.h"
-#undef _timezone
-#undef _daylight
-extern time_t _timezone;
-extern int _daylight;
#define FACTOR (0x19db1ded53ea710LL)
#define NSPERSEC 10000000LL