From 5682d0f1a7a4eb002d8c1b624441974541d989ac Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 27 Apr 2007 13:34:25 +0000 Subject: [PATCH] * include/cygwin/time.h: Use __cdecl on declaration. Remove declarations which are duplicated in include/time.h. --- winsup/cygwin/include/cygwin/time.h | 13 ++++++------- 1 file 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