(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            //              added NSK platform support and PEGASUS_HAVE_NO_STD option
 28 karl  1.24 //              K. Schopmeyer. Added  PEGASUS_TEST_EXCEPTION_DECLARATION Feb 27 2002
 29 kumpf 1.32 //              Carol Ann Krug Graves, Hewlett-Packard Company
 30            //                (carolann_graves@hp.com)
 31 mike  1.18 //
 32            //%/////////////////////////////////////////////////////////////////////////////
 33            
 34            #ifndef Pegasus_Config_h
 35            #define Pegasus_Config_h
 36            
 37            #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
 38            # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h>
 39            #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU)
 40            # include <Pegasus/Common/Platform_LINUX_IX86_GNU.h>
 41            #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX)
 42            # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h>
 43            #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC)
 44            # include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h>
 45 mike  1.19 #elif defined (PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX)
 46            # include <Pegasus/Common/Platform_TRU64_ALPHA_DECCXX.h>
 47 mike  1.21 #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_GNU)
 48            # include <Pegasus/Common/Platform_SOLARIS_SPARC_GNU.h>
 49 mike  1.22 #elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
 50            # include <Pegasus/Common/Platform_ZOS_ZSERIES_IBM.h>
 51            #elif defined (PEGASUS_PLATFORM_NSK_NONSTOP_NMCPLUS)
 52            # include <Pegasus/Common/Platform_NSK_NONSTOP_NMCPLUS.h>
 53 kumpf 1.27 #elif defined (PEGASUS_PLATFORM_LINUX_IA64_GNU)
 54            # include <Pegasus/Common/Platform_LINUX_IA64_GNU.h>
 55 chuck 1.33 #elif defined (__OS400__)
 56            # if !defined (PEGASUS_PLATFORM_OS400_ISERIES_IBM)
 57            #   define PEGASUS_PLATFORM_OS400_ISERIES_IBM 
 58            # endif
 59            # include <Pegasus/Common/Platform_OS400_ISERIES_IBM.h>
 60 mike  1.18 #else
 61            # error "<Pegasus/Common/Config.h>: Unsupported Platform"
 62            #endif
 63            
 64 mike  1.22 #include <iostream>
 65            #include <cstdlib>
 66            
 67 kumpf 1.32 // ATTN: This is a temporary hack until the correct linkages are defined
 68            #ifndef PEGASUS_EXPORT
 69            #define PEGASUS_EXPORT /* empty */
 70            #endif
 71 mike  1.22 
 72 mike  1.18 #ifdef PEGASUS_HAVE_NAMESPACES
 73            # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus {
 74            # define PEGASUS_NAMESPACE_END }
 75 mike  1.22 
 76            #ifndef PEGASUS_HAVE_NO_STD
 77 mike  1.18 # define PEGASUS_STD(X) std::X
 78            # define PEGASUS_USING_STD using namespace std
 79 mike  1.22 #else
 80            # define PEGASUS_STD(X) X
 81            # define PEGASUS_USING_STD
 82            #endif
 83 mike  1.18 # define PEGASUS_USING_PEGASUS using namespace Pegasus
 84            #else
 85            # define PEGASUS_NAMESPACE_BEGIN /* empty */
 86            # define PEGASUS_NAMESPACE_END /* empty */
 87            # define PEGASUS_STD(X) X
 88            # define PEGASUS_USING_STD
 89            # define PEGASUS_USING_PEGASUS
 90            #endif
 91            
 92            #ifdef PEGASUS_HAVE_EXPLICIT
 93            # define PEGASUS_EXPLICIT explicit
 94            #else
 95            # define PEGASUS_EXPLICIT /* empty */
 96            #endif
 97            
 98            #ifdef PEGASUS_HAVE_MUTABLE
 99            # define PEGASUS_MUTABLE mutable
100            #else
101            # define PEGASUS_MUTABLE /* empty */
102            #endif
103            
104 mike  1.18 #ifndef PEGASUS_HAVE_FOR_SCOPE
105            # define for if (0) ; else for
106            #endif
107            
108            #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
109            # define PEGASUS_TEMPLATE_SPECIALIZATION template <>
110            #else
111            # define PEGASUS_TEMPLATE_SPECIALIZATION
112 karl  1.24 #endif
113            
114 kumpf 1.32 #ifdef PEGASUS_HAVE_IOS_BINARY
115            #define PEGASUS_IOS_BINARY ,std::ios::binary
116            #define PEGASUS_OR_IOS_BINARY | std::ios::binary
117            #else
118            #define PEGASUS_IOS_BINARY /* empty */
119            #define PEGASUS_OR_IOS_BINARY /* empty */
120            #endif
121            
122 mike  1.18 
123            PEGASUS_NAMESPACE_BEGIN
124            
125 kumpf 1.32 #ifdef PEGASUS_HAVE_NO_BOOLEAN
126            # include <Pegasus/Common/Boolean.h>
127            #else
128 mike  1.18   typedef bool Boolean;
129            #endif
130            
131            typedef unsigned char Uint8;
132            typedef char Sint8;
133            typedef unsigned short Uint16;
134            typedef short Sint16;
135            typedef unsigned int Uint32;
136            typedef int Sint32;
137            typedef float Real32;
138            typedef double Real64;
139            typedef PEGASUS_UINT64 Uint64;
140            typedef PEGASUS_SINT64 Sint64;
141            
142            #define PEG_NOT_FOUND Uint32(-1)
143            
144            PEGASUS_NAMESPACE_END
145            
146 mike  1.20 #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS
147            # define PEGASUS_UNREACHABLE(CODE)
148            #else
149            # define PEGASUS_UNREACHABLE(CODE) CODE
150            #endif
151            
152 kumpf 1.30 #ifdef PEGASUS_HAVE_EBCDIC
153            # define PEGASUS_MAX_PRINTABLE_CHAR 255
154            #else
155            # define PEGASUS_MAX_PRINTABLE_CHAR 127
156            #endif
157            
158 sage  1.25 // used for zOS only
159            #ifndef PEGASUS_STATIC_CDECL
160            #define PEGASUS_STATIC_CDECL
161            #endif
162            
163 mike  1.18 #endif  /* Pegasus_Config_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2