(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.4 and 1.64

version 1.4, 2001/04/13 19:57:17 version 1.64, 2006/09/05 17:13:09
Line 1 
Line 1 
 //BEGIN_LICENSE  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
   // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
   //
   // Permission is hereby granted, free of charge, to any person obtaining a copy
   // of this software and associated documentation files (the "Software"), to
   // deal in the Software without restriction, including without limitation the
   // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   // 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.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a  //==============================================================================
 // copy of this software and associated documentation files (the "Software"),  
 // to deal in the Software without restriction, including without limitation  
 // the rights to use, copy, modify, merge, publish, distribute, sublicense,  
 // and/or sell copies of the Software, and to permit persons to whom the  
 // Software is furnished to do so, subject to the following conditions:  
 // //
 // 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  #ifndef Pegasus_Config_h
 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  #define Pegasus_Config_h
 // 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  #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
 // DEALINGS IN THE SOFTWARE.  # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h>
 //  #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU)
 //END_LICENSE  # include <Pegasus/Common/Platform_LINUX_IX86_GNU.h>
 //BEGIN_HISTORY  #elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU)
 //  # include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h>
 // Author:  #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX)
 //  # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h>
 // $Log$  #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC)
 // Revision 1.4  2001/04/13 19:57:17  mike  # include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h>
 // Fixed several memory leaks.  #elif defined (PEGASUS_PLATFORM_HPUX_IA64_ACC)
 // Fixed build crash problem (caused by screwed up NT flags).  # include <Pegasus/Common/Platform_HPUX_IA64_ACC.h>
 //  #elif defined (PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX)
 // Revision 1.3  2001/04/13 18:20:51  mike  # include <Pegasus/Common/Platform_TRU64_ALPHA_DECCXX.h>
 // Ported so Solaris.  #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_GNU)
 // Fixed memory leaks.  # include <Pegasus/Common/Platform_SOLARIS_SPARC_GNU.h>
 //  #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_CC)
 // Revision 1.2  2001/04/11 00:39:18  mike  # include <Pegasus/Common/Platform_SOLARIS_SPARC_CC.h>
 // More porting  #elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
 //  # include <Pegasus/Common/Platform_ZOS_ZSERIES_IBM.h>
 // Revision 1.1.1.1  2001/01/14 19:50:39  mike  #elif defined (PEGASUS_PLATFORM_LINUX_IA64_GNU)
 // Pegasus import  # include <Pegasus/Common/Platform_LINUX_IA64_GNU.h>
 //  #elif defined (PEGASUS_PLATFORM_LINUX_X86_64_GNU)
 //  # include <Pegasus/Common/Platform_LINUX_X86_64_GNU.h>
 //END_HISTORY  #elif defined (PEGASUS_PLATFORM_LINUX_PPC_GNU)
   # include <Pegasus/Common/Platform_LINUX_PPC_GNU.h>
   #elif defined (PEGASUS_PLATFORM_LINUX_PPC64_GNU)
   # include <Pegasus/Common/Platform_LINUX_PPC64_GNU.h>
   #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES_GNU)
   # include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h>
   #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU)
   # include <Pegasus/Common/Platform_LINUX_ZSERIES64_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>
   #elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU)
   # include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h>
   #else
   # error "<Pegasus/Common/Config.h>: Unsupported Platform"
   #endif
   
   
  
 ////////////////////////////////////////////////////////////////////////////////  
   //<<< Sun Apr  6 19:28:00 2003 mdd >>>
 // //
 // Config.h  // 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
  
 #ifndef Pegasus_Config_h  #if defined(__GNUC__)
 #define Pegasus_Config_h  #define GCC_VERSION (__GNUC__ * 10000 \
                                  + __GNUC_MINOR__ * 100 \
                                  + __GNUC_PATCHLEVEL__)
   
   // To test for GCC > 3.2.0:
   //     #if GCC_VERSION > 30200
   
   #endif
   
   
   #ifdef __cplusplus
   #include <cstdlib>
   #endif
   
   #ifndef PEGASUS_IMPORT
   # define PEGASUS_IMPORT /* empty */
   #endif
   
   #ifndef PEGASUS_EXPORT
   # define PEGASUS_EXPORT /* empty */
   #endif
   
   /*
   **==============================================================================
   **
   ** PEGASUS_HIDDEN_LINKAGE
   **
   **     This macro suppresses the export of a symbol in contexts in which the
   **     default linkage would have otherwise exported the symbol. Consider the
   **     following example:
   **
   **         class PEGASUS_COMMON_LINKAGE MyClass
   **         {
   **         public:
   **
   **             // Is exported (due to PEGASUS_COMMON_LINKAGE macro).
   **             void f();
   **
   **             // Is not exported (despite the PEGASUS_COMMON_LINKAGE macro).
   **             PEGASUS_HIDDEN_LINKAGE void g(); // not-exported.
   **         };
   **
   **     Notes: this macro has an empty expansion on many platforms since this
   **     feature is compiler specific.
   **
   **==============================================================================
   */
   #ifndef PEGASUS_HIDDEN_LINKAGE
   # define PEGASUS_HIDDEN_LINKAGE /* empty */
   #endif
  
 #if defined(PEGASUS_OS_TYPE_WINDOWS)  #ifdef PEGASUS_HAVE_NAMESPACES
 # include <Pegasus/Common/ConfigWindows.h>  # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus {
 #elif defined(PEGASUS_OS_TYPE_UNIX)  # define PEGASUS_NAMESPACE_END }
 # include <Pegasus/Common/ConfigUnix.h>  # define PEGASUS_NAMESPACE(X) Pegasus::X
   
   #ifndef PEGASUS_HAVE_NO_STD
   # define PEGASUS_STD(X) std::X
   # define PEGASUS_USING_STD using namespace std
 #else #else
 # error "Unsupported platform"  # define PEGASUS_STD(X) X
   # define PEGASUS_USING_STD
   #endif
   # define PEGASUS_USING_PEGASUS using namespace Pegasus
   #else
   # define PEGASUS_NAMESPACE_BEGIN /* empty */
   # define PEGASUS_NAMESPACE_END /* empty */
   # define PEGASUS_NAMESPACE(X) X
   # define PEGASUS_STD(X) X
   # define PEGASUS_USING_STD
   # define PEGASUS_USING_PEGASUS
   #endif
   
   #ifdef PEGASUS_HAVE_EXPLICIT
   # define PEGASUS_EXPLICIT explicit
   #else
   # define PEGASUS_EXPLICIT /* empty */
   #endif
   
   #ifdef PEGASUS_HAVE_MUTABLE
   # define PEGASUS_MUTABLE mutable
   #else
   # define PEGASUS_MUTABLE /* empty */
   #endif
   
   #ifndef PEGASUS_HAVE_FOR_SCOPE
   # define for if (0) ; else for
   #endif
   
   #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
   # define PEGASUS_TEMPLATE_SPECIALIZATION template <>
   #else
   # define PEGASUS_TEMPLATE_SPECIALIZATION
   #endif
   
   #ifdef PEGASUS_HAVE_IOS_BINARY
   #if defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM)
   #define PEGASUS_IOS_BINARY ,std::ios::binary,PEGASUS_STD(_CCSID_T(1208))
   #else
   #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
  
 #include <iostream>  
  
 #if defined(sparc)  #ifdef __cplusplus
 # define PEGASUS_OS_SOLARIS  PEGASUS_NAMESPACE_BEGIN
 #elif defined(linux)  
 # define PEGASUS_OS_LINUX  typedef bool Boolean;  // If platform w/o bool, add flag and include Boolean.h
 #elif defined(_WIN32)  typedef unsigned char Uint8;
 # define PEGASUS_OS_WIN32  typedef signed char Sint8;
   typedef unsigned short Uint16;
   typedef signed short Sint16;
   typedef unsigned int Uint32;
   typedef signed int Sint32;
   typedef float Real32;
   typedef double Real64;
   typedef PEGASUS_UINT64 Uint64;
   typedef PEGASUS_SINT64 Sint64;
   
   #define PEG_NOT_FOUND Uint32(-1)
   
   PEGASUS_NAMESPACE_END
   #endif
   
   #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS
   # define PEGASUS_UNREACHABLE(CODE)
   #else
   # define PEGASUS_UNREACHABLE(CODE) CODE
 #endif #endif
  
 #define PEGASUS_TRACE \  #ifdef PEGASUS_HAVE_EBCDIC
     std::cout << __FILE__ << '(' << __LINE__ << ')' << std::endl  # define PEGASUS_MAX_PRINTABLE_CHAR 255
   #else
   # define PEGASUS_MAX_PRINTABLE_CHAR 127
   #endif
  
 #endif  /* Pegasus_Config_h */ #endif  /* Pegasus_Config_h */


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.64

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2