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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2