(file) Return to Config.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 mike  1.18 //%/////////////////////////////////////////////////////////////////////////////
  2            //
  3 kumpf 1.29 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
  4            // The Open Group, Tivoli Systems
  5 mike  1.18 //
  6            // Permission is hereby granted, free of charge, to any person obtaining a copy
  7 karl  1.26 // of this software and associated documentation files (the "Software"), to
  8            // deal in the Software without restriction, including without limitation the
  9            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 10 mike  1.18 // sell copies of the Software, and to permit persons to whom the Software is
 11            // furnished to do so, subject to the following conditions:
 12 kumpf 1.29 // 
 13 karl  1.26 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 14 mike  1.18 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 15            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 16 karl  1.26 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 17            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 18            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 19 mike  1.18 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 20            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 21            //
 22            //==============================================================================
 23            //
 24            // Author: Mike Brasher (mbrasher@bmc.com)
 25            //
 26 mike  1.22 // Modified By: Rudy Schuet (rudy.schuet@compaq.com) 11/25/01
 27 kumpf 1.35 //              K. Schopmeyer
 28 kumpf 1.32 //              Carol Ann Krug Graves, Hewlett-Packard Company
 29            //                (carolann_graves@hp.com)
 30 mike  1.18 //
 31            //%/////////////////////////////////////////////////////////////////////////////
 32            
 33            #ifndef Pegasus_Config_h
 34            #define Pegasus_Config_h
 35            
 36            #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
 37            # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h>
 38            #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU)
 39            # include <Pegasus/Common/Platform_LINUX_IX86_GNU.h>
 40            #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX)
 41            # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h>
 42            #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC)
 43            # include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h>
 44 kumpf 1.36 #elif defined (PEGASUS_PLATFORM_HPUX_IA64_ACC)
 45            # include <Pegasus/Common/Platform_HPUX_IA64_ACC.h>
 46 mike  1.19 #elif defined (PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX)
 47            # include <Pegasus/Common/Platform_TRU64_ALPHA_DECCXX.h>
 48 mike  1.21 #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_GNU)
 49            # include <Pegasus/Common/Platform_SOLARIS_SPARC_GNU.h>
 50 mike  1.22 #elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
 51            # include <Pegasus/Common/Platform_ZOS_ZSERIES_IBM.h>
 52            #elif defined (PEGASUS_PLATFORM_NSK_NONSTOP_NMCPLUS)
 53            # include <Pegasus/Common/Platform_NSK_NONSTOP_NMCPLUS.h>
 54 kumpf 1.27 #elif defined (PEGASUS_PLATFORM_LINUX_IA64_GNU)
 55            # include <Pegasus/Common/Platform_LINUX_IA64_GNU.h>
 56 chuck 1.33 #elif defined (__OS400__)
 57            # if !defined (PEGASUS_PLATFORM_OS400_ISERIES_IBM)
 58            #   define PEGASUS_PLATFORM_OS400_ISERIES_IBM 
 59            # endif
 60            # include <Pegasus/Common/Platform_OS400_ISERIES_IBM.h>
 61 mike  1.18 #else
 62            # error "<Pegasus/Common/Config.h>: Unsupported Platform"
 63            #endif
 64            
 65 mday  1.39 
 66            
 67            
 68            //<<< Sun Apr  6 19:28:00 2003 mdd >>>
 69            //
 70            // COMPILER Checks
 71            //
 72            // This is to allow a check for GCC > 3.2
 73            // It needs to be the first thing we check because the next lines load
 74            // further source files
 75            
 76            #if defined(__GNUC__)
 77            #define GCC_VERSION (__GNUC__ * 10000 \
 78                                           + __GNUC_MINOR__ * 100 \
 79                                           + __GNUC_PATCHLEVEL__)
 80            
 81            // To test for GCC > 3.2.0:
 82            //     #if GCC_VERSION > 30200
 83            
 84            #endif 
 85            
 86 mday  1.39 
 87 mike  1.22 #include <cstdlib>
 88            
 89 kumpf 1.35 // used for Windows only
 90 kumpf 1.32 #ifndef PEGASUS_EXPORT
 91            #define PEGASUS_EXPORT /* empty */
 92            #endif
 93 mike  1.22 
 94 mike  1.18 #ifdef PEGASUS_HAVE_NAMESPACES
 95            # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus {
 96            # define PEGASUS_NAMESPACE_END }
 97 mike  1.22 
 98            #ifndef PEGASUS_HAVE_NO_STD
 99 mike  1.18 # define PEGASUS_STD(X) std::X
100            # define PEGASUS_USING_STD using namespace std
101 mike  1.22 #else
102            # define PEGASUS_STD(X) X
103            # define PEGASUS_USING_STD
104            #endif
105 mike  1.18 # define PEGASUS_USING_PEGASUS using namespace Pegasus
106            #else
107            # define PEGASUS_NAMESPACE_BEGIN /* empty */
108            # define PEGASUS_NAMESPACE_END /* empty */
109            # define PEGASUS_STD(X) X
110            # define PEGASUS_USING_STD
111            # define PEGASUS_USING_PEGASUS
112            #endif
113            
114            #ifdef PEGASUS_HAVE_EXPLICIT
115            # define PEGASUS_EXPLICIT explicit
116            #else
117            # define PEGASUS_EXPLICIT /* empty */
118            #endif
119            
120            #ifdef PEGASUS_HAVE_MUTABLE
121            # define PEGASUS_MUTABLE mutable
122            #else
123            # define PEGASUS_MUTABLE /* empty */
124            #endif
125            
126 mike  1.18 #ifndef PEGASUS_HAVE_FOR_SCOPE
127            # define for if (0) ; else for
128            #endif
129            
130            #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
131            # define PEGASUS_TEMPLATE_SPECIALIZATION template <>
132            #else
133            # define PEGASUS_TEMPLATE_SPECIALIZATION
134 karl  1.24 #endif
135            
136 kumpf 1.32 #ifdef PEGASUS_HAVE_IOS_BINARY
137            #define PEGASUS_IOS_BINARY ,std::ios::binary
138            #define PEGASUS_OR_IOS_BINARY | std::ios::binary
139            #else
140            #define PEGASUS_IOS_BINARY /* empty */
141            #define PEGASUS_OR_IOS_BINARY /* empty */
142            #endif
143            
144 kumpf 1.34 #ifndef PEGASUS_SINT64_LITERAL
145 kumpf 1.37 #define PEGASUS_SINT64_LITERAL(X) (Sint64 (X##LL))
146 kumpf 1.34 #endif
147            #ifndef PEGASUS_UINT64_LITERAL
148 kumpf 1.37 #define PEGASUS_UINT64_LITERAL(X) (Uint64 (X##ULL))
149 kumpf 1.34 #endif
150 mike  1.18 
151 kumpf 1.40 // Used in printf and scanf conversion strings for Uint64 and Sint64 arguments
152            #ifndef PEGASUS_64BIT_CONVERSION_WIDTH
153            #define PEGASUS_64BIT_CONVERSION_WIDTH "ll"
154            #endif
155            
156 mike  1.18 PEGASUS_NAMESPACE_BEGIN
157            
158 kumpf 1.35 typedef bool Boolean;  // If platform w/o bool, add flag and include Boolean.h
159 mike  1.18 typedef unsigned char Uint8;
160            typedef char Sint8;
161            typedef unsigned short Uint16;
162            typedef short Sint16;
163            typedef unsigned int Uint32;
164            typedef int Sint32;
165            typedef float Real32;
166            typedef double Real64;
167            typedef PEGASUS_UINT64 Uint64;
168            typedef PEGASUS_SINT64 Sint64;
169            
170            #define PEG_NOT_FOUND Uint32(-1)
171            
172            PEGASUS_NAMESPACE_END
173            
174 mike  1.20 #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS
175            # define PEGASUS_UNREACHABLE(CODE)
176            #else
177            # define PEGASUS_UNREACHABLE(CODE) CODE
178            #endif
179            
180 kumpf 1.30 #ifdef PEGASUS_HAVE_EBCDIC
181            # define PEGASUS_MAX_PRINTABLE_CHAR 255
182            #else
183            # define PEGASUS_MAX_PRINTABLE_CHAR 127
184            #endif
185            
186 sage  1.25 // used for zOS only
187            #ifndef PEGASUS_STATIC_CDECL
188            #define PEGASUS_STATIC_CDECL
189            #endif
190 mday  1.39 
191 sage  1.25 
192 mike  1.18 #endif  /* Pegasus_Config_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2