(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.63 and 1.75

version 1.63, 2006/08/16 19:31:25 version 1.75, 2007/08/03 00:37:57
Line 1 
Line 1 
   /*
 //%2006//////////////////////////////////////////////////////////////////////// //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
Line 30 
Line 31 
 //============================================================================== //==============================================================================
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
   */
  
 #ifndef Pegasus_Config_h #ifndef Pegasus_Config_h
 #define Pegasus_Config_h #define Pegasus_Config_h
  
 #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_WIN64_IA64_MSVC)
   # include <Pegasus/Common/Platform_WIN64_IA64_MSVC.h>
   #elif defined(PEGASUS_PLATFORM_WIN64_X86_64_MSVC)
   # include <Pegasus/Common/Platform_WIN64_X86_64_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_LINUX_XSCALE_GNU) #elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU)
 # include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h> # include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h>
   #elif defined (PEGASUS_PLATFORM_PASE_ISERIES_IBMCXX)
   #include <Pegasus/Common/Platform_PASE_ISERIES_IBMCXX.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) #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC)
Line 66 
Line 74 
 # include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h> # include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h>
 #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU) #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU)
 # include <Pegasus/Common/Platform_LINUX_ZSERIES64_GNU.h> # 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) #elif defined (PEGASUS_PLATFORM_DARWIN_PPC_GNU)
 # include <Pegasus/Common/Platform_DARWIN_PPC_GNU.h> # include <Pegasus/Common/Platform_DARWIN_PPC_GNU.h>
   #elif defined (PEGASUS_PLATFORM_DARWIN_IX86_GNU)
   # include <Pegasus/Common/Platform_DARWIN_IX86_GNU.h>
 #elif defined (PEGASUS_PLATFORM_VMS_ALPHA_DECCXX) #elif defined (PEGASUS_PLATFORM_VMS_ALPHA_DECCXX)
 # include <Pegasus/Common/Platform_VMS_ALPHA_DECCXX.h> # include <Pegasus/Common/Platform_VMS_ALPHA_DECCXX.h>
 #elif defined (PEGASUS_PLATFORM_VMS_IA64_DECCXX) #elif defined (PEGASUS_PLATFORM_VMS_IA64_DECCXX)
Line 85 
Line 90 
  
  
  
   /*
 //<<< Sun Apr  6 19:28:00 2003 mdd >>> //<<< Sun Apr  6 19:28:00 2003 mdd >>>
 // //
 // COMPILER Checks // COMPILER Checks
Line 93 
Line 98 
 // This is to allow a check for GCC > 3.2 // This is to allow a check for GCC > 3.2
 // It needs to be the first thing we check because the next lines load // It needs to be the first thing we check because the next lines load
 // further source files // further source files
   */
  
 #if defined(__GNUC__) #if defined(__GNUC__)
 #define GCC_VERSION (__GNUC__ * 10000 \ #define GCC_VERSION (__GNUC__ * 10000 \
                                + __GNUC_MINOR__ * 100 \                                + __GNUC_MINOR__ * 100 \
                                + __GNUC_PATCHLEVEL__)                                + __GNUC_PATCHLEVEL__)
  
   /*
 // To test for GCC > 3.2.0: // To test for GCC > 3.2.0:
 //     #if GCC_VERSION > 30200 //     #if GCC_VERSION > 30200
   */
  
 #endif #endif
  
Line 147 
Line 155 
 #endif #endif
  
 #ifdef PEGASUS_HAVE_NAMESPACES #ifdef PEGASUS_HAVE_NAMESPACES
   #ifdef __cplusplus
 # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus { # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus {
 # define PEGASUS_NAMESPACE_END } # define PEGASUS_NAMESPACE_END }
 # define PEGASUS_NAMESPACE(X) Pegasus::X # define PEGASUS_NAMESPACE(X) Pegasus::X
Line 167 
Line 176 
 # define PEGASUS_USING_STD # define PEGASUS_USING_STD
 # define PEGASUS_USING_PEGASUS # define PEGASUS_USING_PEGASUS
 #endif #endif
   #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 #ifdef PEGASUS_HAVE_EXPLICIT
   #ifdef __cplusplus
 # define PEGASUS_EXPLICIT explicit # define PEGASUS_EXPLICIT explicit
 #else #else
 # define PEGASUS_EXPLICIT /* empty */ # define PEGASUS_EXPLICIT /* empty */
 #endif #endif
   #else
   # define PEGASUS_EXPLICIT /* empty */
   #endif
  
 #ifdef PEGASUS_HAVE_MUTABLE #ifdef PEGASUS_HAVE_MUTABLE
   #ifdef __cplusplus
 # define PEGASUS_MUTABLE mutable # define PEGASUS_MUTABLE mutable
 #else #else
 # define PEGASUS_MUTABLE /* empty */ # define PEGASUS_MUTABLE /* empty */
 #endif #endif
   #else
   # define PEGASUS_MUTABLE /* empty */
   #endif
  
 #ifndef PEGASUS_HAVE_FOR_SCOPE #ifndef PEGASUS_HAVE_FOR_SCOPE
 # define for if (0) ; else for # define for if (0) ; else for
 #endif #endif
  
 #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
   #ifdef __cplusplus
 # define PEGASUS_TEMPLATE_SPECIALIZATION template <> # define PEGASUS_TEMPLATE_SPECIALIZATION template <>
 #else #else
 # define PEGASUS_TEMPLATE_SPECIALIZATION # define PEGASUS_TEMPLATE_SPECIALIZATION
 #endif #endif
   #else
   # define PEGASUS_TEMPLATE_SPECIALIZATION
   #endif
  
 #ifdef PEGASUS_HAVE_IOS_BINARY #ifdef PEGASUS_HAVE_IOS_BINARY
 #if defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM)  #ifdef __cplusplus
 #define PEGASUS_IOS_BINARY ,std::ios::binary,PEGASUS_STD(_CCSID_T(1208))  
 #else  
 #define PEGASUS_IOS_BINARY ,std::ios::binary #define PEGASUS_IOS_BINARY ,std::ios::binary
 #endif  
 #define PEGASUS_OR_IOS_BINARY | std::ios::binary #define PEGASUS_OR_IOS_BINARY | std::ios::binary
 #else #else
 #define PEGASUS_IOS_BINARY /* empty */ #define PEGASUS_IOS_BINARY /* empty */
 #define PEGASUS_OR_IOS_BINARY /* empty */ #define PEGASUS_OR_IOS_BINARY /* empty */
 #endif #endif
   #else
   #define PEGASUS_IOS_BINARY /* empty */
   #define PEGASUS_OR_IOS_BINARY /* empty */
   #endif
  
 #ifndef PEGASUS_SINT64_LITERAL #ifndef PEGASUS_SINT64_LITERAL
 #define PEGASUS_SINT64_LITERAL(X) (Sint64 (X##LL)) #define PEGASUS_SINT64_LITERAL(X) (Sint64 (X##LL))
Line 209 
Line 239 
 #define PEGASUS_UINT64_LITERAL(X) (Uint64 (X##ULL)) #define PEGASUS_UINT64_LITERAL(X) (Uint64 (X##ULL))
 #endif #endif
  
 // Used in printf and scanf conversion strings for Uint64 and Sint64 arguments  /* Used in printf and scanf conversion strings for Uint64 and Sint64 args */
 #ifndef PEGASUS_64BIT_CONVERSION_WIDTH #ifndef PEGASUS_64BIT_CONVERSION_WIDTH
 #define PEGASUS_64BIT_CONVERSION_WIDTH "ll" #define PEGASUS_64BIT_CONVERSION_WIDTH "ll"
 #endif #endif
  
 #ifndef PEGASUS_MAXHOSTNAMELEN #ifndef PEGASUS_MAXHOSTNAMELEN
   # ifdef _POSIX_HOST_NAME_MAX
   #  define PEGASUS_MAXHOSTNAMELEN _POSIX_HOST_NAME_MAX
   # else
 #define PEGASUS_MAXHOSTNAMELEN MAXHOSTNAMELEN #define PEGASUS_MAXHOSTNAMELEN MAXHOSTNAMELEN
 #endif #endif
   #endif
  
 #ifdef __cplusplus #ifdef __cplusplus
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 245 
Line 278 
 # define PEGASUS_UNREACHABLE(CODE) CODE # define PEGASUS_UNREACHABLE(CODE) CODE
 #endif #endif
  
 #ifdef PEGASUS_HAVE_EBCDIC  /*
 # define PEGASUS_MAX_PRINTABLE_CHAR 255  **==============================================================================
   **
   ** PEGASUS_FORMAT
   **
   **     This macro allows the compiler to check the arguments to format
   **     specifiers in the printf family of functions. For example, the following
   **     enables format checking for the foo function.
   **
   **         PEGASUS_FORMAT(1, 2)
   **         void foo(const char* format, ...);
   **
   **     On GCC, the following error is detected  below (when using this macro).
   **
   **         foo("%s %d", 99, "hello"); // mismatch specifiers!
   **
   **==============================================================================
   */
   
   #if defined(__GNUC__) &&  (__GNUC__ >= 4)
   # define PEGASUS_FORMAT(A1, A2) __attribute__((format (printf, A1, A2)))
 #else #else
 # define PEGASUS_MAX_PRINTABLE_CHAR 127  # define PEGASUS_FORMAT(A1, A2) /* not implemented */
 #endif #endif
  
 // used for zOS only  
 #ifndef PEGASUS_STATIC_CDECL  
 #define PEGASUS_STATIC_CDECL  
 #endif  
  
 #endif  /* Pegasus_Config_h */ #endif  /* Pegasus_Config_h */


Legend:
Removed from v.1.63  
changed lines
  Added in v.1.75

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2