(file) Return to Platform_WIN64_IA64_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.7.4.1 /*****************************************************************************
 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_IA64_MSVC_h
 47                  #define Pegasus_Platform_WIN64_IA64_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_IA64
 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 karl     1.7.4.2 #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                  // Supresss this warning : C++ exception specification ignored except
100                  // to indicate a function is not __declspec(nothrow)
101                  #pragma warning( disable : 4290 )
102                  
103                  // Suppress this warning : "'this' : used in base member initializer list"
104                  #pragma warning ( disable : 4355 )
105                  
106                  // Suppress this warning: 'type' : forcing value to bool 'true' or 'false'
107                  // (performance warning)
108                  #ifdef PEGASUS_INTERNALONLY
109                  #pragma warning( disable : 4800 )
110                  #endif
111                  
112                  // VC 8 specific pragmas
113                  #if _MSC_VER >= 1400
114                  // Suppress this warning: '<function>' was declared deprecated
115                  // This warning is supported beginning with VC 8.
116                  #pragma warning ( disable : 4996 )
117                  
118                  // Suppress this warning: behavior change: an object of POD type constructed
119 a.dunfey 1.1     // with an initializer of the form () will be default-initialized
120                  #pragma warning ( disable : 4345 )
121                  #endif
122                  
123                  //
124                  // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
125                  // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
126                  // 1300 (subtract 600 to get the version of Visual Studio). Look in
127                  // SystemWindows.cpp for the definitions.
128                  //
129                  #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
130                  # include <iostream>
131                  namespace std
132                  {
133                      inline ostream& operator<<(ostream& os, const unsigned __int64& x)
134                      {
135                          char buffer[64];
136                          sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
137                          return os << buffer;
138                      }
139                  
140 a.dunfey 1.1         inline ostream& operator<<(ostream& os, const __int64& x)
141                      {
142                          char buffer[64];
143                          sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
144                          return os << buffer;
145                      }
146                  }
147                  #endif /* _MSC_VER < 1300 */
148                  
149 venkat.puvvada 1.7     #if _MSC_VER > 1400
150                        #define PEGASUS_HAVE_WINDOWS_IPV6ONLY
151                        #endif
152                        
153 a.dunfey       1.1     #define PEGASUS_HAVE_WINDOWS_THREADS
154                        
155 marek          1.3     /* use OpenPegasus semaphore based read/write locking mechanism */
156                        #define PEGASUS_USE_SEMAPHORE_RWLOCK
157                        
158 kavita.gupta   1.4     #define PEGASUS_INTEGERS_BOUNDARY_ALIGNED
159                        
160 a.dunfey       1.1     #endif /* Pegasus_Platform_WIN64_IA64_MSVC_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2