![]() ![]() |
![]() |
1 mike 1.8 //%///////////////////////////////////////////////////////////////////////////// | ||
2 mike 1.1 // 3 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM 4 // 5 // Permission is hereby granted, free of charge, to any person obtaining a 6 // copy of this software and associated documentation files (the "Software"), 7 // to deal in the Software without restriction, including without limitation 8 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 // and/or sell copies of the Software, and to permit persons to whom the 10 // Software is furnished to do so, subject to the following conditions: 11 // 12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 15 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 17 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 18 // DEALINGS IN THE SOFTWARE. 19 // | ||
20 mike 1.8 //============================================================================== | ||
21 mike 1.1 // | ||
22 mike 1.8 // Author: Mike Brasher (mbrasher@bmc.com) | ||
23 mike 1.1 // | ||
24 mike 1.8 // Modified By: | ||
25 mike 1.7 // | ||
26 mike 1.8 //%///////////////////////////////////////////////////////////////////////////// | ||
27 mike 1.1 28 #ifndef Pegasus_Config_h 29 #define Pegasus_Config_h 30 | ||
31 mike 1.6 #include <iostream> | ||
32 mike 1.14 #include <cstdlib> | ||
33 mike 1.3 | ||
34 mike 1.6 #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) 35 # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h> 36 #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU) 37 # include <Pegasus/Common/Platform_LINUX_IX86_GNU.h> | ||
38 mike 1.11 #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX) 39 # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h> | ||
40 mike 1.14 #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC) 41 # include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h> | ||
42 mike 1.6 #else 43 # error "<Pegasus/Common/Config.h>: Unsupported Platform" 44 #endif | ||
45 mike 1.4 | ||
46 mike 1.11 #ifdef PEGASUS_HAVE_NAMESPACES 47 # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus { 48 # define PEGASUS_NAMESPACE_END } 49 # define PEGASUS_STD(X) std::X 50 # define PEGASUS_USING_STD using namespace std 51 # define PEGASUS_USING_PEGASUS using namespace Pegasus 52 #else 53 # define PEGASUS_NAMESPACE_BEGIN /* empty */ 54 # define PEGASUS_NAMESPACE_END /* empty */ 55 # define PEGASUS_STD(X) X 56 # define PEGASUS_USING_STD 57 # define PEGASUS_USING_PEGASUS 58 #endif 59 60 #ifdef PEGASUS_HAVE_EXPLICIT 61 # define PEGASUS_EXPLICIT explicit 62 #else 63 # define PEGASUS_EXPLICIT /* empty */ 64 #endif 65 66 #ifdef PEGASUS_HAVE_MUTABLE 67 mike 1.11 # define PEGASUS_MUTABLE mutable 68 #else 69 # define PEGASUS_MUTABLE /* empty */ 70 #endif 71 72 #ifndef PEGASUS_HAVE_FOR_SCOPE 73 # define for if (0) ; else for 74 #endif 75 76 #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION 77 # define PEGASUS_TEMPLATE_SPECIALIZATION template <> 78 #else 79 # define PEGASUS_TEMPLATE_SPECIALIZATION 80 #endif 81 82 PEGASUS_NAMESPACE_BEGIN 83 84 #ifdef PEGASUS_HAVE_BOOLEAN 85 typedef bool Boolean; 86 #else 87 # include <Pegasus/Common/Boolean.h> 88 mike 1.11 #endif 89 90 typedef unsigned char Uint8; 91 typedef char Sint8; 92 typedef unsigned short Uint16; 93 typedef short Sint16; 94 typedef unsigned int Uint32; 95 typedef int Sint32; 96 typedef float Real32; 97 typedef double Real64; 98 typedef PEGASUS_UINT64 Uint64; 99 typedef PEGASUS_SINT64 Sint64; 100 | ||
101 mike 1.12 #define PEGASUS_NOT_FOUND Uint32(-1) | ||
102 karl 1.13 #define PEG_NOT_FOUND Uint32(-1) | ||
103 mike 1.12 | ||
104 mike 1.11 PEGASUS_NAMESPACE_END 105 | ||
106 mike 1.4 #define PEGASUS_TRACE \ | ||
107 mike 1.11 PEGASUS_STD(cout) << __FILE__ << '(' << __LINE__ << ')' << PEGASUS_STD(endl) | ||
108 mike 1.7 | ||
109 mike 1.11 #define PEGASUS_OUT(X) \ 110 PEGASUS_STD(cout) << #X << "=[" << X << "]" << PEGASUS_STD(endl) | ||
111 mike 1.1 112 #endif /* Pegasus_Config_h */ |
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |