OS_NS_sys_time.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   OS_NS_sys_time.h
00006  *
00007  *  OS_NS_sys_time.h,v 1.5 2005/10/28 16:14:54 ossama Exp
00008  *
00009  *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
00010  *  @author Jesper S. M|ller<stophph@diku.dk>
00011  *  @author and a cast of thousands...
00012  *
00013  *  Originally in OS.h.
00014  */
00015 //=============================================================================
00016 
00017 #ifndef ACE_OS_NS_SYS_TIME_H
00018 # define ACE_OS_NS_SYS_TIME_H
00019 
00020 # include /**/ "ace/pre.h"
00021 
00022 # include "ace/config-all.h"
00023 
00024 # if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 #  pragma once
00026 # endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #include "ace/Time_Value.h"
00029 #include "ace/ACE_export.h"
00030 
00031 #if defined (ACE_EXPORT_MACRO)
00032 #  undef ACE_EXPORT_MACRO
00033 #endif
00034 #define ACE_EXPORT_MACRO ACE_Export
00035 
00036 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00037 
00038 namespace ACE_OS
00039 {
00040 #if defined (ACE_WIN32) && defined (_WIN32_WCE)
00041 // Something is a bit brain-damaged here and I'm not sure what... this code
00042 // compiled before the OS reorg for ACE 5.4. Since then it hasn't - eVC
00043 // complains that the operators that return ACE_Time_Value are C-linkage
00044 // functions that can't return a C++ class. The only way I've found to
00045 // defeat this is to wrap the whole class in extern "C++".
00046 //    - Steve Huston, 23-Aug-2004
00047 extern "C++" {
00048 #endif
00049 
00050   ACE_NAMESPACE_INLINE_FUNCTION
00051   ACE_Time_Value gettimeofday (void);
00052 
00053 #if defined (ACE_WIN32) && defined (_WIN32_WCE)
00054 }
00055 #endif
00056 } /* namespace ACE_OS */
00057 
00058 ACE_END_VERSIONED_NAMESPACE_DECL
00059 
00060 # if defined (ACE_HAS_INLINED_OSCALLS)
00061 #   if defined (ACE_INLINE)
00062 #     undef ACE_INLINE
00063 #   endif /* ACE_INLINE */
00064 #   define ACE_INLINE inline
00065 #   include "ace/OS_NS_sys_time.inl"
00066 # endif /* ACE_HAS_INLINED_OSCALLS */
00067 
00068 # include /**/ "ace/post.h"
00069 #endif /* ACE_OS_NS_SYS_TIME_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6