(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 s.hills 1.17 	
 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 david.dillard 1.26 #define PEGASUS_SOCKET SOCKET
 75                    #define PEGASUS_INVALID_SOCKET INVALID_SOCKET
 76                    
 77 s.hills       1.17 // Exclude rarely-used stuff from Windows headers
 78                    // Note: this is also an easy way to avoid the often introduced 
 79                    // winsock.h/winsock2.h mixing compiler error problems.
 80 david.dillard 1.20 #ifndef WIN32_LEAN_AND_MEAN
 81 s.hills       1.17 #define WIN32_LEAN_AND_MEAN
 82 david.dillard 1.20 #endif
 83 kumpf         1.13 
 84                    // Suppress this warning: "identifier was truncated to '255' characters in the
 85                    // debug information":
 86                    #pragma warning( disable : 4786 )
 87                    
 88                    // Suppress this warning: "class <XXX> needs to have dll-interface to be used
 89                    // by clients of class <YYY>"
 90                    #pragma warning ( disable : 4251 )
 91                    
 92 tony          1.16 // Supress this warning : non dll-interface class <XXX> used as base
 93                    // for dll-interface class <YYY>
 94                    #pragma warning( disable : 4275 )
 95                    
 96                    // Supresss this warning : C++ exception specification ignored except
 97                    // to indicate a function is not __declspec(nothrow)
 98                    #pragma warning( disable : 4290 )
 99                    
100 kumpf         1.13 // Suppress this warning : "'this' : used in base member initializer list"
101                    #pragma warning ( disable : 4355 )
102 tony          1.16 
103 mark.hamzy    1.32 // Suppress this warning: 'type' : forcing value to bool 'true' or 'false' (performance warning)
104 a.dunfey      1.33 #ifdef PEGASUS_INTERNALONLY
105 mark.hamzy    1.32 #pragma warning( disable : 4800 ) 
106                    #endif
107                    
108 mike          1.28 //
109                    // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
110                    // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
111                    // 1300 (subtract 600 to get the version of Visual Studio). Look in 
112                    // SystemWindows.cpp for the definitions.
113                    //
114 mike          1.30 #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
115 mike          1.28 # include <iostream>
116                    namespace std
117                    {
118 mike          1.29     inline ostream& operator<<(ostream& os, const unsigned __int64& x)
119 mike          1.28     {
120                    	char buffer[64];
121                    	sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
122                    	return os << buffer;
123                        }
124                    
125 mike          1.29     inline ostream& operator<<(ostream& os, const __int64& x)
126 mike          1.28     {
127                    	char buffer[64];
128                    	sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
129                    	return os << buffer;
130                        }
131                    }
132                    #endif /* _MSC_VER < 1300 */
133 mike          1.9  
134 mike          1.31 #define PEGASUS_SOCKLEN_T int
135                    
136 mike          1.9  #endif /* Pegasus_Platform_WIN32_IX86_MSVC_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2