* include/cygwin/time.h: Use __cdecl on declaration. Remove
declarations which are duplicated in include/time.h.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/* time.h
|
/* time.h
|
||||||
|
|
||||||
Copyright 2005 Red Hat Inc.
|
Copyright 2005, 2007 Red Hat Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@@ -15,13 +15,12 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int nanosleep (const struct timespec *, struct timespec *);
|
/* Not defined in main time.h */
|
||||||
int clock_setres (clockid_t, struct timespec *);
|
int __cdecl clock_setres (clockid_t, struct timespec *);
|
||||||
int clock_getres (clockid_t, struct timespec *);
|
|
||||||
|
|
||||||
/* GNU extensions. */
|
/* GNU extensions. */
|
||||||
time_t timelocal (struct tm *);
|
time_t __cdecl timelocal (struct tm *);
|
||||||
time_t timegm (struct tm *);
|
time_t __cdecl timegm (struct tm *);
|
||||||
|
|
||||||
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
|
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
|
||||||
|
|
||||||
@@ -31,7 +30,7 @@ time_t timegm (struct tm *);
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifndef timezonevar
|
# ifndef timezonevar
|
||||||
char *timezone (void);
|
char __cdecl *timezone (void);
|
||||||
# elif !defined(timezone)
|
# elif !defined(timezone)
|
||||||
# define timezone _timezone
|
# define timezone _timezone
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user