Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / OS_NS_errno.h
blobeedece4661d7d38ec9c70ae75efdd4bd12f7f252
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_errno.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
11 //=============================================================================
13 #ifndef ACE_OS_NS_ERRNO_H
14 # define ACE_OS_NS_ERRNO_H
16 # include /**/ "ace/pre.h"
18 # include "ace/config-lite.h"
20 # if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 # endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/os_include/os_errno.h"
25 #include /**/ "ace/ACE_export.h"
27 #if defined (ACE_EXPORT_MACRO)
28 # undef ACE_EXPORT_MACRO
29 #endif
30 #define ACE_EXPORT_MACRO ACE_Export
32 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
34 namespace ACE_OS {
35 ACE_NAMESPACE_INLINE_FUNCTION
36 int last_error ();
38 ACE_NAMESPACE_INLINE_FUNCTION
39 void last_error (int error);
41 ACE_NAMESPACE_INLINE_FUNCTION
42 int set_errno_to_last_error ();
44 ACE_NAMESPACE_INLINE_FUNCTION
45 int set_errno_to_wsa_last_error ();
47 #ifdef ACE_MQX
48 int mqx_error_to_errno(int mqx_error);
49 #endif
51 } /* namespace ACE_OS */
53 #if !defined (ACE_ERRNO_TYPE)
54 # define ACE_ERRNO_TYPE int
55 #endif /* !ACE_ERRNO_TYPE */
56 #define ACE_ERRNO_GET errno
58 ACE_END_VERSIONED_NAMESPACE_DECL
60 # if defined (ACE_HAS_INLINED_OSCALLS)
61 # if defined (ACE_INLINE)
62 # undef ACE_INLINE
63 # endif /* ACE_INLINE */
64 # define ACE_INLINE inline
65 # include "ace/OS_NS_errno.inl"
66 # endif /* ACE_HAS_INLINED_OSCALLS */
68 # include /**/ "ace/post.h"
69 #endif /* ACE_OS_NS_ERRNO_H */