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

  1 martin 1.5 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.6 //
  3 martin 1.5 // Licensed to The Open Group (TOG) under one or more contributor license
  4            // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5            // this work for additional information regarding copyright ownership.
  6            // Each contributor licenses this file to you under the OpenPegasus Open
  7            // Source License; you may not use this file except in compliance with the
  8            // License.
  9 martin 1.6 //
 10 martin 1.5 // Permission is hereby granted, free of charge, to any person obtaining a
 11            // copy of this software and associated documentation files (the "Software"),
 12            // to deal in the Software without restriction, including without limitation
 13            // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14            // and/or sell copies of the Software, and to permit persons to whom the
 15            // Software is furnished to do so, subject to the following conditions:
 16 martin 1.6 //
 17 martin 1.5 // The above copyright notice and this permission notice shall be included
 18            // in all copies or substantial portions of the Software.
 19 martin 1.6 //
 20 martin 1.5 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.6 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.5 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23            // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24            // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25            // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26            // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.6 //
 28 martin 1.5 //////////////////////////////////////////////////////////////////////////
 29 a.dunfey 1.1 //
 30              //%/////////////////////////////////////////////////////////////////////////////
 31              
 32 karl     1.9 /*****************************************************************************
 33                The platform configuration files in pegasus/src/Pegasus/Common/Platform_*.h
 34                are intended to normalize platform/compiler differences so that Pegasus code
 35                can be written to work on all platforms without requiring platform ifdefs.
 36                Since these files are part of the Pegasus SDK, their contents should be
 37                the minimum that achieves the stated purpose.
 38              
 39                Examples of differences that are normalized here are support for C++
 40                namespaces, 64-bit integer type, support for C++ template specialization.
 41              
 42                Examples of things that are not appropriate in these files are the enablement
 43                of Pegasus features for a specific platform and other build configuration.
 44              ******************************************************************************/
 45              
 46 a.dunfey 1.1 #ifndef Pegasus_Platform_WIN64_X86_64_MSVC_h
 47              #define Pegasus_Platform_WIN64_X86_64_MSVC_h
 48              
 49              #define PEGASUS_OS_TYPE_WINDOWS
 50              
 51              #define PEGASUS_EXPORT __declspec(dllexport)
 52              
 53              #define PEGASUS_IMPORT __declspec(dllimport)
 54              
 55              #define PEGASUS_ARCHITECTURE_X86_64
 56              
 57              #define PEGASUS_COMPILER_MSVC
 58              
 59              #define PEGASUS_UINT64 unsigned __int64
 60              
 61              #define PEGASUS_SINT64 __int64
 62              
 63              #define PEGASUS_SINT64_LITERAL(X) Sint64(X)
 64              #define PEGASUS_UINT64_LITERAL(X) Uint64(X)
 65              
 66              #define PEGASUS_64BIT_CONVERSION_WIDTH "I64"
 67 a.dunfey 1.1 
 68              #define PEGASUS_HAVE_NAMESPACES
 69              
 70              // #define PEGASUS_HAVE_FOR_SCOPE
 71              
 72              #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
 73              
 74              #define PEGASUS_HAVE_IOS_BINARY
 75              
 76 dl.meetei 1.10 #define PEGASUS_MAXHOSTNAMELEN  256
 77 a.dunfey  1.1  
 78                #define PEGASUS_DISABLE_INTERNAL_INLINES
 79                
 80                // Exclude rarely-used stuff from Windows headers
 81                // Note: this is also an easy way to avoid the often introduced
 82                // winsock.h/winsock2.h mixing compiler error problems.
 83                #ifndef WIN32_LEAN_AND_MEAN
 84                #define WIN32_LEAN_AND_MEAN
 85                #endif
 86                
 87                // Suppress this warning: "identifier was truncated to '255' characters in the
 88                // debug information":
 89                #pragma warning( disable : 4786 )
 90                
 91                // Suppress this warning: "class <XXX> needs to have dll-interface to be used
 92                // by clients of class <YYY>"
 93                #pragma warning ( disable : 4251 )
 94                
 95                // Supress this warning : non dll-interface class <XXX> used as base
 96                // for dll-interface class <YYY>
 97                #pragma warning( disable : 4275 )
 98 a.dunfey  1.1  
 99 karl      1.8  // Disable this warningBinary 'argument' : conversion from 'size_t' to
100                //'Type', possible loss of data. Typically type is Uint32
101                #pragma warning ( disable : 4267 )
102                
103                // Disable this warning 'function': was declared deprecated
104                #pragma warning( disable : 4996 )
105                 
106 a.dunfey  1.1  // Supresss this warning : C++ exception specification ignored except
107                // to indicate a function is not __declspec(nothrow)
108                #pragma warning( disable : 4290 )
109                
110                // Suppress this warning : "'this' : used in base member initializer list"
111                #pragma warning ( disable : 4355 )
112                
113                // Suppress this warning: 'type' : forcing value to bool 'true' or 'false'
114                // (performance warning)
115                #ifdef PEGASUS_INTERNALONLY
116                #pragma warning( disable : 4800 )
117                #endif
118                
119                // VC 8 specific pragmas
120                #if _MSC_VER >= 1400
121                // Suppress this warning: '<function>' was declared deprecated
122                // This warning is supported beginning with VC 8.
123                #pragma warning ( disable : 4996 )
124                
125                // Suppress this warning: behavior change: an object of POD type constructed
126                // with an initializer of the form () will be default-initialized
127 a.dunfey  1.1  #pragma warning ( disable : 4345 )
128                #endif
129                
130                //
131                // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
132                // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
133                // 1300 (subtract 600 to get the version of Visual Studio). Look in
134                // SystemWindows.cpp for the definitions.
135                //
136                #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
137                # include <iostream>
138                namespace std
139                {
140                    inline ostream& operator<<(ostream& os, const unsigned __int64& x)
141                    {
142                        char buffer[64];
143                        sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
144                        return os << buffer;
145                    }
146                
147                    inline ostream& operator<<(ostream& os, const __int64& x)
148 a.dunfey  1.1      {
149                        char buffer[64];
150                        sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
151                        return os << buffer;
152                    }
153                }
154                #endif /* _MSC_VER < 1300 */
155                
156 venkat.puvvada 1.7  #if _MSC_VER > 1400
157                     #define PEGASUS_HAVE_WINDOWS_IPV6ONLY
158                     #endif
159                     
160 a.dunfey       1.1  #define PEGASUS_HAVE_WINDOWS_THREADS
161                     
162 marek          1.3  /* use OpenPegasus semaphore based read/write locking mechanism */
163                     #define PEGASUS_USE_SEMAPHORE_RWLOCK
164                     
165 kavita.gupta   1.4  #define PEGASUS_INTEGERS_BOUNDARY_ALIGNED
166                     
167 a.dunfey       1.1  #endif /* Pegasus_Platform_WIN64_X86_64_MSVC_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2