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

  1 karl  1.34 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.9  //
  3 karl  1.22 // 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.18 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.22 // 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.23 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.34 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.9  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.12 // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.9  // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20            // 
 21 kumpf 1.12 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.9  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 kumpf 1.12 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike  1.9  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            //%/////////////////////////////////////////////////////////////////////////////
 33            
 34            #ifndef Pegasus_Platform_WIN32_IX86_MSVC_h
 35            #define Pegasus_Platform_WIN32_IX86_MSVC_h
 36            
 37 kumpf 1.13 #define PEGASUS_OS_TYPE_WINDOWS
 38            
 39            #define PEGASUS_EXPORT __declspec(dllexport)
 40            
 41            #define PEGASUS_IMPORT __declspec(dllimport)
 42 mike  1.9  
 43            #define PEGASUS_OS_WIN32
 44            
 45            #define PEGASUS_ARCHITECTURE_IX86
 46            
 47            #define PEGASUS_COMPILER_MSVC
 48            
 49            #define PEGASUS_UINT64 unsigned __int64
 50            
 51            #define PEGASUS_SINT64 __int64
 52 kumpf 1.38 
 53 kumpf 1.14 #define PEGASUS_SINT64_LITERAL(X) Sint64(X)
 54            #define PEGASUS_UINT64_LITERAL(X) Uint64(X)
 55 mday  1.10 
 56 kumpf 1.15 #define PEGASUS_64BIT_CONVERSION_WIDTH "I64"
 57            
 58 mike  1.9  #define PEGASUS_HAVE_NAMESPACES
 59            
 60            // #define PEGASUS_HAVE_FOR_SCOPE
 61            
 62            #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
 63            
 64 kumpf 1.13 #define PEGASUS_HAVE_IOS_BINARY
 65 s.hills 1.17 
 66 kumpf   1.19 #define PEGASUS_MAXHOSTNAMELEN  64
 67              
 68 mike    1.27 #define PEGASUS_DISABLE_INTERNAL_INLINES
 69              
 70 s.hills 1.17 // Exclude rarely-used stuff from Windows headers
 71 kumpf   1.38 // Note: this is also an easy way to avoid the often introduced
 72 s.hills 1.17 // winsock.h/winsock2.h mixing compiler error problems.
 73 david.dillard 1.20 #ifndef WIN32_LEAN_AND_MEAN
 74 s.hills       1.17 #define WIN32_LEAN_AND_MEAN
 75 david.dillard 1.20 #endif
 76 kumpf         1.13 
 77                    // Suppress this warning: "identifier was truncated to '255' characters in the
 78                    // debug information":
 79                    #pragma warning( disable : 4786 )
 80                    
 81                    // Suppress this warning: "class <XXX> needs to have dll-interface to be used
 82                    // by clients of class <YYY>"
 83                    #pragma warning ( disable : 4251 )
 84                    
 85 tony          1.16 // Supress this warning : non dll-interface class <XXX> used as base
 86                    // for dll-interface class <YYY>
 87                    #pragma warning( disable : 4275 )
 88                    
 89                    // Supresss this warning : C++ exception specification ignored except
 90                    // to indicate a function is not __declspec(nothrow)
 91                    #pragma warning( disable : 4290 )
 92                    
 93 kumpf         1.13 // Suppress this warning : "'this' : used in base member initializer list"
 94                    #pragma warning ( disable : 4355 )
 95 tony          1.16 
 96 kumpf         1.38 // Suppress this warning: 'type' : forcing value to bool 'true' or 'false'
 97                    // (performance warning)
 98 a.dunfey      1.33 #ifdef PEGASUS_INTERNALONLY
 99 kumpf         1.38 #pragma warning( disable : 4800 )
100 mark.hamzy    1.32 #endif
101                    
102 david.dillard 1.35 // VC 8 specific pragmas
103                    #if _MSC_VER >= 1400
104                    // Suppress this warning: '<function>' was declared deprecated
105                    // This warning is supported beginning with VC 8.
106                    #pragma warning ( disable : 4996 )
107                    
108 kumpf         1.38 // Suppress this warning: behavior change: an object of POD type constructed
109                    // with an initializer of the form () will be default-initialized
110 david.dillard 1.35 #pragma warning ( disable : 4345 )
111                    #endif
112                    
113 mike          1.28 //
114                    // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
115                    // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
116 kumpf         1.38 // 1300 (subtract 600 to get the version of Visual Studio). Look in
117 mike          1.28 // SystemWindows.cpp for the definitions.
118                    //
119 mike          1.30 #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
120 mike          1.28 # include <iostream>
121                    namespace std
122                    {
123 mike          1.29     inline ostream& operator<<(ostream& os, const unsigned __int64& x)
124 mike          1.28     {
125 david.dillard 1.35         char buffer[64];
126                            sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
127                            return os << buffer;
128 mike          1.28     }
129                    
130 mike          1.29     inline ostream& operator<<(ostream& os, const __int64& x)
131 mike          1.28     {
132 david.dillard 1.35         char buffer[64];
133                            sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
134                            return os << buffer;
135 mike          1.28     }
136                    }
137                    #endif /* _MSC_VER < 1300 */
138 mike          1.9  
139 mike          1.37 #define PEGASUS_HAVE_WINDOWS_THREADS
140                    
141 marek         1.40 /* use OpenPegasus semaphore based read/write locking mechanism */
142                    #define PEGASUS_USE_SEMAPHORE_RWLOCK
143                    
144 mike          1.9  #endif /* Pegasus_Platform_WIN32_IX86_MSVC_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2