File: HsTime.h

package info (click to toggle)
haskell-old-time 1.1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 376 kB
  • sloc: sh: 3,201; ansic: 63; haskell: 4; makefile: 2
file content (49 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * (c) The University of Glasgow 2002
 *
 * Time Runtime Support
 */
#ifndef __TIMEUTILS_H__
#define __TIMEUTILS_H__

#include "HsTimeConfig.h"
// Otherwise these clash with similar definitions from other packages:
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION

#if HAVE_GETTIMEOFDAY
#  if HAVE_SYS_TIME_H
#   include <sys/time.h>
#  endif
#elif HAVE_GETCLOCK
# if HAVE_SYS_TIMERS_H
#  define POSIX_4D9 1
#  include <sys/timers.h>
# endif
#endif
#if HAVE_TIME_H
#include <time.h>
#endif
#if HAVE_SYS_TIMEB_H && !defined(__FreeBSD__)
#include <sys/timeb.h>
#endif

extern long *__hscore_timezone( void );
extern char **__hscore_tzname( void );

#if HAVE_GETTIMEOFDAY
extern int __hscore_gettimeofday(struct timeval *tp, void *tzp);
#endif

#if HAVE_GMTIME_R
extern struct tm *__hscore_gmtime_r(const time_t *clock, struct tm *result);
#endif

#if HAVE_LOCALTIME_R
extern struct tm *__hscore_localtime_r(const time_t *clock, struct tm *result);
#endif

#endif /* __TIMEUTILS_H__ */