(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_EXPLICIT
 61            
 62            #define PEGASUS_HAVE_MUTABLE
 63            
 64            // #define PEGASUS_HAVE_FOR_SCOPE
 65            
 66            #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
 67            
 68 kumpf 1.13 #define PEGASUS_HAVE_IOS_BINARY
 69 s.hills 1.17 
 70 kumpf   1.19 #define PEGASUS_MAXHOSTNAMELEN  64
 71              
 72 mike    1.27 #define PEGASUS_DISABLE_INTERNAL_INLINES
 73              
 74 s.hills 1.17 // Exclude rarely-used stuff from Windows headers
 75 kumpf   1.38 // Note: this is also an easy way to avoid the often introduced
 76 s.hills 1.17 // winsock.h/winsock2.h mixing compiler error problems.
 77 david.dillard 1.20 #ifndef WIN32_LEAN_AND_MEAN
 78 s.hills       1.17 #define WIN32_LEAN_AND_MEAN
 79 david.dillard 1.20 #endif
 80 kumpf         1.13 
 81                    // Suppress this warning: "identifier was truncated to '255' characters in the
 82                    // debug information":
 83                    #pragma warning( disable : 4786 )
 84                    
 85                    // Suppress this warning: "class <XXX> needs to have dll-interface to be used
 86                    // by clients of class <YYY>"
 87                    #pragma warning ( disable : 4251 )
 88                    
 89 tony          1.16 // Supress this warning : non dll-interface class <XXX> used as base
 90                    // for dll-interface class <YYY>
 91                    #pragma warning( disable : 4275 )
 92                    
 93                    // Supresss this warning : C++ exception specification ignored except
 94                    // to indicate a function is not __declspec(nothrow)
 95                    #pragma warning( disable : 4290 )
 96                    
 97 kumpf         1.13 // Suppress this warning : "'this' : used in base member initializer list"
 98                    #pragma warning ( disable : 4355 )
 99 tony          1.16 
100 kumpf         1.38 // Suppress this warning: 'type' : forcing value to bool 'true' or 'false'
101                    // (performance warning)
102 a.dunfey      1.33 #ifdef PEGASUS_INTERNALONLY
103 kumpf         1.38 #pragma warning( disable : 4800 )
104 mark.hamzy    1.32 #endif
105                    
106 david.dillard 1.35 // VC 8 specific pragmas
107                    #if _MSC_VER >= 1400
108                    // Suppress this warning: '<function>' was declared deprecated
109                    // This warning is supported beginning with VC 8.
110                    #pragma warning ( disable : 4996 )
111                    
112 kumpf         1.38 // Suppress this warning: behavior change: an object of POD type constructed
113                    // with an initializer of the form () will be default-initialized
114 david.dillard 1.35 #pragma warning ( disable : 4345 )
115                    #endif
116                    
117 mike          1.28 //
118                    // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
119                    // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
120 kumpf         1.38 // 1300 (subtract 600 to get the version of Visual Studio). Look in
121 mike          1.28 // SystemWindows.cpp for the definitions.
122                    //
123 mike          1.30 #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
124 mike          1.28 # include <iostream>
125                    namespace std
126                    {
127 mike          1.29     inline ostream& operator<<(ostream& os, const unsigned __int64& x)
128 mike          1.28     {
129 david.dillard 1.35         char buffer[64];
130                            sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
131                            return os << buffer;
132 mike          1.28     }
133                    
134 mike          1.29     inline ostream& operator<<(ostream& os, const __int64& x)
135 mike          1.28     {
136 david.dillard 1.35         char buffer[64];
137                            sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
138                            return os << buffer;
139 mike          1.28     }
140                    }
141                    #endif /* _MSC_VER < 1300 */
142 mike          1.9  
143 mike          1.37 #define PEGASUS_HAVE_WINDOWS_THREADS
144                    
145 mike          1.9  #endif /* Pegasus_Platform_WIN32_IX86_MSVC_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2