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

Diff for /pegasus/src/Pegasus/Common/Config.h between version 1.12 and 1.54

version 1.12, 2001/05/21 20:01:57 version 1.54, 2005/02/06 21:13:14
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 //  
 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM  
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // copy of this software and associated documentation files (the "Software"),  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 // to deal in the Software without restriction, including without limitation  // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 // the rights to use, copy, modify, merge, publish, distribute, sublicense,  // IBM Corp.; EMC Corporation, The Open Group.
 // and/or sell copies of the Software, and to permit persons to whom the  // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 // Software is furnished to do so, subject to the following conditions:  // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 //  // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  // EMC Corporation; VERITAS Software Corporation; The Open Group.
 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  //
 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL  // Permission is hereby granted, free of charge, to any person obtaining a copy
 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  // of this software and associated documentation files (the "Software"), to
 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING  // deal in the Software without restriction, including without limitation the
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER  // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 // DEALINGS IN THE SOFTWARE.  // sell copies of the Software, and to permit persons to whom the Software is
   // furnished to do so, subject to the following conditions:
   //
   // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
   // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
   // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
   // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
   // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_Config_h #ifndef Pegasus_Config_h
 #define Pegasus_Config_h #define Pegasus_Config_h
  
 #include <iostream>  
   
 #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
 # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h> # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h>
 #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU) #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU)
 # include <Pegasus/Common/Platform_LINUX_IX86_GNU.h> # include <Pegasus/Common/Platform_LINUX_IX86_GNU.h>
 #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX) #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX)
 # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h> # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h>
   #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC)
   # include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h>
   #elif defined (PEGASUS_PLATFORM_HPUX_IA64_ACC)
   # include <Pegasus/Common/Platform_HPUX_IA64_ACC.h>
   #elif defined (PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX)
   # include <Pegasus/Common/Platform_TRU64_ALPHA_DECCXX.h>
   #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_GNU)
   # include <Pegasus/Common/Platform_SOLARIS_SPARC_GNU.h>
   #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_CC)
   # include <Pegasus/Common/Platform_SOLARIS_SPARC_CC.h>
   #elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
   # include <Pegasus/Common/Platform_ZOS_ZSERIES_IBM.h>
   #elif defined (PEGASUS_PLATFORM_NSK_NONSTOP_NMCPLUS)
   # include <Pegasus/Common/Platform_NSK_NONSTOP_NMCPLUS.h>
   #elif defined (PEGASUS_PLATFORM_LINUX_IA64_GNU)
   # include <Pegasus/Common/Platform_LINUX_IA64_GNU.h>
   #elif defined (PEGASUS_PLATFORM_LINUX_PPC_GNU)
   # include <Pegasus/Common/Platform_LINUX_PPC_GNU.h>
   #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES_GNU)
   # include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h>
   #elif defined (__OS400__)
   # if !defined (PEGASUS_PLATFORM_OS400_ISERIES_IBM)
   #   define PEGASUS_PLATFORM_OS400_ISERIES_IBM
   # endif
   # include <Pegasus/Common/Platform_OS400_ISERIES_IBM.h>
   #elif defined (PEGASUS_PLATFORM_DARWIN_PPC_GNU)
   # include <Pegasus/Common/Platform_DARWIN_PPC_GNU.h>
   #elif defined (PEGASUS_PLATFORM_VMS_ALPHA_DECCXX)
   # include <Pegasus/Common/Platform_VMS_ALPHA_DECCXX.h>
   #elif defined (PEGASUS_PLATFORM_VMS_IA64_DECCXX)
   # include <Pegasus/Common/Platform_VMS_IA64_DECCXX.h>
 #else #else
 # error "<Pegasus/Common/Config.h>: Unsupported Platform" # error "<Pegasus/Common/Config.h>: Unsupported Platform"
 #endif #endif
  
   
   
   
   //<<< Sun Apr  6 19:28:00 2003 mdd >>>
   //
   // COMPILER Checks
   //
   // This is to allow a check for GCC > 3.2
   // It needs to be the first thing we check because the next lines load
   // further source files
   
   #if defined(__GNUC__)
   #define GCC_VERSION (__GNUC__ * 10000 \
                                  + __GNUC_MINOR__ * 100 \
                                  + __GNUC_PATCHLEVEL__)
   
   // To test for GCC > 3.2.0:
   //     #if GCC_VERSION > 30200
   
   #endif
   
   
   #include <cstdlib>
   
   // used for Windows only
   #ifndef PEGASUS_EXPORT
   #define PEGASUS_EXPORT /* empty */
   #endif
   
 #ifdef PEGASUS_HAVE_NAMESPACES #ifdef PEGASUS_HAVE_NAMESPACES
 # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus { # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus {
 # define PEGASUS_NAMESPACE_END } # define PEGASUS_NAMESPACE_END }
   
   #ifndef PEGASUS_HAVE_NO_STD
 # define PEGASUS_STD(X) std::X # define PEGASUS_STD(X) std::X
 # define PEGASUS_USING_STD using namespace std # define PEGASUS_USING_STD using namespace std
   #else
   # define PEGASUS_STD(X) X
   # define PEGASUS_USING_STD
   #endif
 # define PEGASUS_USING_PEGASUS using namespace Pegasus # define PEGASUS_USING_PEGASUS using namespace Pegasus
 #else #else
 # define PEGASUS_NAMESPACE_BEGIN /* empty */ # define PEGASUS_NAMESPACE_BEGIN /* empty */
Line 76 
Line 144 
 # define PEGASUS_TEMPLATE_SPECIALIZATION # define PEGASUS_TEMPLATE_SPECIALIZATION
 #endif #endif
  
 PEGASUS_NAMESPACE_BEGIN  #ifdef PEGASUS_HAVE_IOS_BINARY
   #if defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM)
 #ifdef PEGASUS_HAVE_BOOLEAN  #define PEGASUS_IOS_BINARY ,std::ios::binary,PEGASUS_STD(_CCSID_T(1208))
   typedef bool Boolean;  
 #else #else
 # include <Pegasus/Common/Boolean.h>  #define PEGASUS_IOS_BINARY ,std::ios::binary
   #endif
   #define PEGASUS_OR_IOS_BINARY | std::ios::binary
   #else
   #define PEGASUS_IOS_BINARY /* empty */
   #define PEGASUS_OR_IOS_BINARY /* empty */
   #endif
   
   #ifndef PEGASUS_SINT64_LITERAL
   #define PEGASUS_SINT64_LITERAL(X) (Sint64 (X##LL))
   #endif
   #ifndef PEGASUS_UINT64_LITERAL
   #define PEGASUS_UINT64_LITERAL(X) (Uint64 (X##ULL))
   #endif
   
   // Used in printf and scanf conversion strings for Uint64 and Sint64 arguments
   #ifndef PEGASUS_64BIT_CONVERSION_WIDTH
   #define PEGASUS_64BIT_CONVERSION_WIDTH "ll"
   #endif
   
   #ifndef PEGASUS_MAXHOSTNAMELEN
   #define PEGASUS_MAXHOSTNAMELEN MAXHOSTNAMELEN
 #endif #endif
  
   
   PEGASUS_NAMESPACE_BEGIN
   
   typedef bool Boolean;  // If platform w/o bool, add flag and include Boolean.h
 typedef unsigned char Uint8; typedef unsigned char Uint8;
 typedef char Sint8;  typedef signed char Sint8;
 typedef unsigned short Uint16; typedef unsigned short Uint16;
 typedef short Sint16;  typedef signed short Sint16;
 typedef unsigned int Uint32; typedef unsigned int Uint32;
 typedef int Sint32;  typedef signed int Sint32;
 typedef float Real32; typedef float Real32;
 typedef double Real64; typedef double Real64;
 typedef PEGASUS_UINT64 Uint64; typedef PEGASUS_UINT64 Uint64;
 typedef PEGASUS_SINT64 Sint64; typedef PEGASUS_SINT64 Sint64;
  
 #define PEGASUS_NOT_FOUND Uint32(-1)  #define PEG_NOT_FOUND Uint32(-1)
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #define PEGASUS_TRACE \  #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS
     PEGASUS_STD(cout) << __FILE__ << '(' << __LINE__ << ')' << PEGASUS_STD(endl)  # define PEGASUS_UNREACHABLE(CODE)
   #else
   # define PEGASUS_UNREACHABLE(CODE) CODE
   #endif
   
   #ifdef PEGASUS_HAVE_EBCDIC
   # define PEGASUS_MAX_PRINTABLE_CHAR 255
   #else
   # define PEGASUS_MAX_PRINTABLE_CHAR 127
   #endif
   
   // used for zOS only
   #ifndef PEGASUS_STATIC_CDECL
   #define PEGASUS_STATIC_CDECL
   #endif
  
 #define PEGASUS_OUT(X) \  
     PEGASUS_STD(cout) << #X << "=[" << X << "]" << PEGASUS_STD(endl)  
  
 #endif  /* Pegasus_Config_h */ #endif  /* Pegasus_Config_h */


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.54

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2