Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / os_include / sys / os_time.h
blob4c6fdce763b0d1e768078d595ca6667aa2bf4a24
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file os_time.h
7 * time types
9 * $Id: os_time.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Don Hinton <dhinton@dresystems.com>
12 * @author This code was originally in various places including ace/OS.h.
14 //=============================================================================
16 #ifndef ACE_OS_INCLUDE_SYS_OS_TIME_H
17 #define ACE_OS_INCLUDE_SYS_OS_TIME_H
19 #include /**/ "ace/pre.h"
21 #include "ace/config-lite.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 # pragma once
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #include "ace/os_include/sys/os_types.h"
29 #if !defined (ACE_LACKS_SYS_TIME_H)
30 # include /**/ <sys/time.h>
31 #endif /* !ACE_LACKS_SYS_TIME_H */
33 #if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
34 # include /**/ <time.h> // VxWorks 6.2 defined timeval in time.h
35 #endif
37 // Place all additions (especially function declarations) within extern "C" {}
38 #ifdef __cplusplus
39 extern "C"
41 #endif /* __cplusplus */
43 #if defined (ACE_HAS_SVR4_GETTIMEOFDAY)
44 # if !defined (SCO)
45 int gettimeofday (struct timeval *tp, void * = 0);
46 # else
47 int gettimeofday (struct timeval *tp);
48 # endif /* !SCO */
49 #elif defined (ACE_HAS_OSF1_GETTIMEOFDAY)
50 int gettimeofday (struct timeval *tp, struct timezone * = 0);
51 #elif defined (ACE_HAS_VOIDPTR_GETTIMEOFDAY)
52 # define ACE_HAS_SVR4_GETTIMEOFDAY
53 #endif /* ACE_HAS_SVR4_GETTIMEOFDAY */
55 #ifdef __cplusplus
57 #endif /* __cplusplus */
59 #include /**/ "ace/post.h"
60 #endif /* ACE_OS_INCLUDE_SYS_OS_TIME_H */