Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / config-all.h
blob102923c1941cb2fc65f6ff51852cdee335ac44d4
1 // -*- C++ -*-
3 //==========================================================================
4 /**
5 * @file config-all.h
7 * @author Doug 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_CONFIG_ALL_H
14 #define ACE_CONFIG_ALL_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 // This is used to indicate that a platform doesn't support a
25 // particular feature.
26 #if defined ACE_HAS_VERBOSE_NOTSUP
27 // Print a console message with the file and line number of the
28 // unsupported function.
29 # include "ace/OS_NS_stdio.h"
30 # define ACE_NOTSUP_RETURN(FAILVALUE) do { errno = ENOTSUP; ACE_OS::fprintf (stderr, ACE_TEXT ("ACE_NOTSUP: %s, line %d\n"), __FILE__, __LINE__); return FAILVALUE; } while (0)
31 # define ACE_NOTSUP do { errno = ENOTSUP; ACE_OS::fprintf (stderr, ACE_TEXT ("ACE_NOTSUP: %s, line %d\n"), __FILE__, __LINE__); return; } while (0)
32 #else /* ! ACE_HAS_VERBOSE_NOTSUP */
33 # define ACE_NOTSUP_RETURN(FAILVALUE) do { errno = ENOTSUP ; return FAILVALUE; } while (0)
34 # define ACE_NOTSUP do { errno = ENOTSUP; return; } while (0)
35 #endif /* ! ACE_HAS_VERBOSE_NOTSUP */
37 // ----------------------------------------------------------------
39 # define ACE_TRACE_IMPL(X) ACE_Trace ____ (ACE_TEXT (X), __LINE__, ACE_TEXT (__FILE__))
41 // By default tracing is turned off.
42 #if !defined (ACE_NTRACE)
43 # define ACE_NTRACE 1
44 #endif /* ACE_NTRACE */
46 #if (ACE_NTRACE == 1)
47 # define ACE_TRACE(X)
48 #else
49 # if !defined (ACE_HAS_TRACE)
50 # define ACE_HAS_TRACE
51 # endif /* ACE_HAS_TRACE */
52 # define ACE_TRACE(X) ACE_TRACE_IMPL(X)
53 # include "ace/Trace.h"
54 #endif /* ACE_NTRACE */
56 // By default we perform no tracing on the OS layer, otherwise the
57 // coupling between the OS layer and Log_Msg is too tight. But the
58 // application can override the default if they wish to.
59 #if !defined (ACE_OS_NTRACE)
60 # define ACE_OS_NTRACE 1
61 #endif /* ACE_OS_NTRACE */
63 #if (ACE_OS_NTRACE == 1)
64 # define ACE_OS_TRACE(X)
65 #else
66 # if !defined (ACE_HAS_TRACE)
67 # define ACE_HAS_TRACE
68 # endif /* ACE_HAS_TRACE */
69 # define ACE_OS_TRACE(X) ACE_TRACE_IMPL(X)
70 # include "ace/Trace.h"
71 #endif /* ACE_OS_NTRACE */
73 #if !defined (ACE_TEMPLATES_REQUIRE_SOURCE)
74 # define ACE_TEMPLATES_REQUIRE_SOURCE
75 #endif
77 #if !defined (ACE_HAS_MONITOR_FRAMEWORK)
78 # define ACE_HAS_MONITOR_FRAMEWORK 1
79 #endif
81 #if !defined (ACE_HAS_SENDFILE)
82 # define ACE_HAS_SENDFILE 0
83 #endif
85 #if !defined (ACE_HAS_MONITOR_POINTS)
86 # define ACE_HAS_MONITOR_POINTS 0
87 #endif
89 // For all compilers we require the std library to be in the std namespace
90 #if !defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB)
91 #define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
92 #endif
94 // We require that the standard C++ library is support
95 #if !defined (ACE_HAS_STANDARD_CPP_LIBRARY)
96 # define ACE_HAS_STANDARD_CPP_LIBRARY 1
97 #endif
99 // Define ACE_NEW_THROWS_EXCEPTIONS for all compilers, we
100 // expect all compilers to do so
101 #if !defined (ACE_NEW_THROWS_EXCEPTIONS)
102 # define ACE_NEW_THROWS_EXCEPTIONS
103 #endif /* ACE_NEW_THROWS_EXCEPTIONS */
105 // Define ACE_HAS_NEW_NOTHROW for all compilers, we
106 // except all compilers to support this
107 #if !defined (ACE_HAS_NEW_NOTHROW)
108 # define ACE_HAS_NEW_NOTHROW
109 #endif /* ACE_HAS_NEW_NOTHROW */
111 // We require the platform to have a string class
112 #if !defined (ACE_HAS_STRING_CLASS)
113 # define ACE_HAS_STRING_CLASS
114 #endif /* ACE_HAS_STRING_CLASS */
116 // ACE 7.0.3 renamed this macro, defining the old name for
117 // backwards compatibility
118 #if defined (ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS)
119 # define ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS
120 #endif /* ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS */
123 // These includes are here to avoid circular dependencies.
124 // Keep this at the bottom of the file. It contains the main macros.
125 #include "ace/OS_main.h"
127 #include /**/ "ace/post.h"
129 #endif /* ACE_CONFIG_ALL_H */