2 #include "ace/OS_Errno.h"
4 // Inlining this class on debug builds with gcc on Solaris can cause
5 // deadlocks during static initialization. On non debug builds it
6 // causes compilation errors.
7 #if !defined (ACE_HAS_INLINED_OSCALLS) || \
8 (defined (__GNUG__) && defined (__sun__))
9 # if defined (ACE_INLINE)
11 # endif /* ACE_INLINE */
13 # include "ace/OS_Errno.inl"
14 #endif /* ACE_HAS_INLINED_OSCALLS */
16 #if defined (ACE_HAS_WINCE_BROKEN_ERRNO)
18 #include "ace/OS_Memory.h"
20 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
22 ACE_CE_Errno
*ACE_CE_Errno::instance_
= 0;
23 DWORD
ACE_CE_Errno::errno_key_
= 0xffffffff;
28 ACE_NEW (ACE_CE_Errno::instance_
,
30 ACE_CE_Errno::errno_key_
= TlsAlloc ();
36 TlsFree (ACE_CE_Errno::errno_key_
);
37 delete ACE_CE_Errno::instance_
;
38 ACE_CE_Errno::instance_
= 0;
41 ACE_END_VERSIONED_NAMESPACE_DECL
43 #endif /* ACE_HAS_WINCE_BROKEN_ERRNO */