blob: c3e36288c58f8726e5ea17e68b70ffb10b825610 (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file time.h
*
* $Id$
*
* @author Douglas C. Schmidt (schmidt@cs.wustl.edu)
* @author etc
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_TIME_H
# define ACE_OS_INCLUDE_TIME_H
# include "ace/pre.h"
# include "ace/config-all.h"
# if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
# endif /* ACE_LACKS_PRAGMA_ONCE */
# if !defined (ACE_LACKS_TIME_H)
# include /**/ <time.h>
# endif /* ACE_LACKS_TIME_H */
# if defined (ACE_NEEDS_SYS_TIMES_H)
include /**/ <sys/times.h>
# endif /* ACE_NEEDS_SYS_TIMES_H) */
# if defined (ACE_NEEDS_SYS_TIME_H)
# include /**/ <sys/time.h>
# endif /* ACE_NEEDS_SYS_TIME_H */
# if defined (ACE_USES_STD_NAMESPACE_FOR_STDC_LIB) && \
(ACE_USES_STD_NAMESPACE_FOR_STDC_LIB != 0)
using std::time_t;
using std::tm;
# if defined (ACE_WIN32)
using std::_timezone;
# else
using std::timezone;
# endif
using std::difftime;
# endif /* ACE_USES_STD_NAMESPACE_FOR_STDC_LIB */
# if !defined (ACE_HAS_CLOCK_GETTIME) && !(defined (_CLOCKID_T_) || defined (_CLOCKID_T))
typedef int clockid_t;
# if !defined (CLOCK_REALTIME)
# define CLOCK_REALTIME 0
# endif /* CLOCK_REALTIME */
# endif /* ! ACE_HAS_CLOCK_GETTIME && ! _CLOCKID_T_ */
// does this belong here?
# if defined (ACE_HAS_BROKEN_CTIME)
# undef ctime
# endif /* ACE_HAS_BROKEN_CTIME */
# if defined (ACE_LACKS_STRPTIME_PROTOTYPE) && !defined (_XOPEN_SOURCE)
extern "C" char *strptime (const char *s, const char *fmt, struct tm *tp);
# endif /* ACE_LACKS_STRPTIME_PROTOTYPE */
#endif /* ACE_OS_INCLUDE_TIME_H */
|