summaryrefslogtreecommitdiff
path: root/ace/config-cxx-common.h
blob: 206e44be441e8662ae21541d8a5f5ec1f515aaec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// $Id$

#ifndef ACE_CXX_COMMON_H
#define ACE_CXX_COMMON_H

#if !defined (ACE_CONFIG_INCLUDE_CXX_COMMON)
# error ace/config-cxx-common.h: ACE configuration error!  Do not #include this file directly!
#endif

#if defined (__DECCXX)
# define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
# define ACE_LACKS_LINEBUFFERED_STREAMBUF
# define ACE_LACKS_SIGNED_CHAR
# if defined (linux)
#   define ACE_HAS_STANDARD_CPP_LIBRARY 1
#   define ACE_HAS_CPLUSPLUS_HEADERS
# else  /* ! linux */
#   define ACE_HAS_STRING_CLASS
#   if (__DECCXX_VER >= 60090010)
#     define ACE_HAS_STDCPP_STL_INCLUDES
#   endif /* __DECCXX_VER < 60090010 */
# endif /* ! linux */
# define DEC_CXX
# if (__DECCXX_VER >= 60090010)
    // DEC CXX 6.0 supports exceptions, etc., by default.  Exceptions
    // are enabled by platform_osf1_4.0.GNU/wrapper_macros.GNU.
#   if defined (ACE_HAS_EXCEPTIONS)
#     define ACE_NEW_THROWS_EXCEPTIONS
#   endif /* ACE_HAS_EXCEPTIONS */
#   define ACE_HAS_ANSI_CASTS
#   if !defined (__RTTI)
#     define ACE_LACKS_RTTI
#   endif
#   define ACE_HAS_TEMPLATE_SPECIALIZATION
#   define ACE_HAS_TEMPLATE_TYPEDEFS
#   define ACE_HAS_TYPENAME_KEYWORD
#   define ACE_HAS_USING_KEYWORD

#   define ACE_ENDLESS_LOOP \
      unsigned int ace_endless_loop____ = 0; if (ace_endless_loop____) break;

#   if defined (__USE_STD_IOSTREAM)
#     define ACE_LACKS_CHAR_RIGHT_SHIFTS
#     define ACE_LACKS_IOSTREAM_FX
#     define ACE_LACKS_UNBUFFERED_STREAMBUF
#   else  /* ! __USE_STD_IOSTREAM */
#     define ACE_USES_OLD_IOSTREAMS
#   endif /* ! __USE_STD_IOSTREAM */

//    9: nested comment not allowed.  (/usr/include/pdsc.h!) (nestcomment)
//  177: variable was declared but never referenced (declbutnotref)
//  193: zero used for undefined preprocessing identifier (undpreid)
//  236: controlling expression is constant (boolexprconst)
//  401: base_class_with_nonvirtual_dtor (basclsnondto)
// 1016: expected type is incompatible with declared type of int (incint)
// 1136: conversion to smaller size integer could lose data (intconlosbit)

#   pragma message disable basclsnondto
#   pragma message disable boolexprconst
#   pragma message disable undpreid

#   if (__DECCXX_VER >= 60190029)
      // 6.1-029 and later support msg 1136.  Disable it because it
      // causes warnings from ACE and/or TAO.
#     pragma message disable intconlosbit
#   endif /* __DECCXX_VER >= 60190029 */

#   if defined (DIGITAL_UNIX)  &&  DIGITAL_UNIX >= 0x40F
      // variable "PTHREAD_THIS_CATCH_NP" was declared but never referenced
#     pragma message disable declbutnotref
#   endif /* DIGITAL_UNIX >= 4.0f */

# else  /* __DECCXX_VER < 60090010 */
#   define ACE_LACKS_PRAGMA_ONCE
# endif /* __DECCXX_VER < 60090010 */
#else  /* ! __DECCXX */
# error ace/config-cxx-common.h can only be used with Compaq CXX!
#endif /* ! __DECCXX */

#endif /* ACE_CXX_COMMON_H */