mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-08 18:19:08 +08:00
0d9cddc377
comment.
45 lines
987 B
C
45 lines
987 B
C
/* time.h
|
|
|
|
Copyright 2005, 2007 Red Hat Inc.
|
|
|
|
This file is part of Cygwin.
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
details. */
|
|
|
|
#ifndef _CYGWIN_TIME_H
|
|
#define _CYGWIN_TIME_H
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/* Not defined in main time.h */
|
|
int __cdecl clock_setres (clockid_t, struct timespec *);
|
|
|
|
/* GNU extensions. */
|
|
time_t __cdecl timelocal (struct tm *);
|
|
time_t __cdecl timegm (struct tm *);
|
|
|
|
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
# ifndef daylight
|
|
# define daylight _daylight
|
|
# endif
|
|
|
|
/* The timezone function is only kept for backward compatibility.
|
|
POSIX expects the timezone variable as XSI extension. */
|
|
# ifdef __timezonefunc__
|
|
char __cdecl *timezone (void);
|
|
# elif !defined(timezone)
|
|
# define timezone _timezone
|
|
# endif
|
|
#endif /*__STRICT_ANSI__*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /*_CYGWIN_TIME_H*/
|