summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2007-04-27 13:34:25 +0000
committerChristopher Faylor <me@cgf.cx>2007-04-27 13:34:25 +0000
commit5682d0f1a7a4eb002d8c1b624441974541d989ac (patch)
treef6c601a400c85b71b8bd6170d262526b0b5c5b7d /winsup
parent2388178da8378c927ae03a4c06ffce5625ebb3a9 (diff)
downloadcygnal-5682d0f1a7a4eb002d8c1b624441974541d989ac.tar.gz
cygnal-5682d0f1a7a4eb002d8c1b624441974541d989ac.tar.bz2
cygnal-5682d0f1a7a4eb002d8c1b624441974541d989ac.zip
* include/cygwin/time.h: Use __cdecl on declaration. Remove
declarations which are duplicated in include/time.h.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/include/cygwin/time.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/winsup/cygwin/include/cygwin/time.h b/winsup/cygwin/include/cygwin/time.h
index 83a8e62f8..4a482d78f 100644
--- a/winsup/cygwin/include/cygwin/time.h
+++ b/winsup/cygwin/include/cygwin/time.h
@@ -1,6 +1,6 @@
/* time.h
- Copyright 2005 Red Hat Inc.
+ Copyright 2005, 2007 Red Hat Inc.
This file is part of Cygwin.
@@ -15,13 +15,12 @@ extern "C"
{
#endif
-int nanosleep (const struct timespec *, struct timespec *);
-int clock_setres (clockid_t, struct timespec *);
-int clock_getres (clockid_t, struct timespec *);
+/* Not defined in main time.h */
+int __cdecl clock_setres (clockid_t, struct timespec *);
/* GNU extensions. */
-time_t timelocal (struct tm *);
-time_t timegm (struct tm *);
+time_t __cdecl timelocal (struct tm *);
+time_t __cdecl timegm (struct tm *);
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
@@ -31,7 +30,7 @@ time_t timegm (struct tm *);
# endif
# ifndef timezonevar
-char *timezone (void);
+char __cdecl *timezone (void);
# elif !defined(timezone)
# define timezone _timezone
# endif