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 #ifndef Pegasus_Platform_WIN64_IA64_MSVC_h
33 #define Pegasus_Platform_WIN64_IA64_MSVC_h
34
35 #define PEGASUS_OS_TYPE_WINDOWS
36
37 #define PEGASUS_EXPORT __declspec(dllexport)
38
39 #define PEGASUS_IMPORT __declspec(dllimport)
40
41 #define PEGASUS_ARCHITECTURE_IA64
42
43 #define PEGASUS_COMPILER_MSVC
44
45 #define PEGASUS_UINT64 unsigned __int64
46
47 #define PEGASUS_SINT64 __int64
48
49 #define PEGASUS_SINT64_LITERAL(X) Sint64(X)
50 a.dunfey 1.1 #define PEGASUS_UINT64_LITERAL(X) Uint64(X)
51
52 #define PEGASUS_64BIT_CONVERSION_WIDTH "I64"
53
54 #define PEGASUS_HAVE_NAMESPACES
55
56 // #define PEGASUS_HAVE_FOR_SCOPE
57
58 #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
59
60 #define PEGASUS_HAVE_IOS_BINARY
61
62 #define PEGASUS_MAXHOSTNAMELEN 64
63
64 #define PEGASUS_DISABLE_INTERNAL_INLINES
65
66 // Exclude rarely-used stuff from Windows headers
67 // Note: this is also an easy way to avoid the often introduced
68 // winsock.h/winsock2.h mixing compiler error problems.
69 #ifndef WIN32_LEAN_AND_MEAN
70 #define WIN32_LEAN_AND_MEAN
71 a.dunfey 1.1 #endif
72
73 // Suppress this warning: "identifier was truncated to '255' characters in the
74 // debug information":
75 #pragma warning( disable : 4786 )
76
77 // Suppress this warning: "class <XXX> needs to have dll-interface to be used
78 // by clients of class <YYY>"
79 #pragma warning ( disable : 4251 )
80
81 // Supress this warning : non dll-interface class <XXX> used as base
82 // for dll-interface class <YYY>
83 #pragma warning( disable : 4275 )
84
85 // Supresss this warning : C++ exception specification ignored except
86 // to indicate a function is not __declspec(nothrow)
87 #pragma warning( disable : 4290 )
88
89 // Suppress this warning : "'this' : used in base member initializer list"
90 #pragma warning ( disable : 4355 )
91
92 a.dunfey 1.1 // Suppress this warning: 'type' : forcing value to bool 'true' or 'false'
93 // (performance warning)
94 #ifdef PEGASUS_INTERNALONLY
95 #pragma warning( disable : 4800 )
96 #endif
97
98 // VC 8 specific pragmas
99 #if _MSC_VER >= 1400
100 // Suppress this warning: '<function>' was declared deprecated
101 // This warning is supported beginning with VC 8.
102 #pragma warning ( disable : 4996 )
103
104 // Suppress this warning: behavior change: an object of POD type constructed
105 // with an initializer of the form () will be default-initialized
106 #pragma warning ( disable : 4345 )
107 #endif
108
109 //
110 // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
111 // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
112 // 1300 (subtract 600 to get the version of Visual Studio). Look in
113 a.dunfey 1.1 // SystemWindows.cpp for the definitions.
114 //
115 #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
116 # include <iostream>
117 namespace std
118 {
119 inline ostream& operator<<(ostream& os, const unsigned __int64& x)
120 {
121 char buffer[64];
122 sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
123 return os << buffer;
124 }
125
126 inline ostream& operator<<(ostream& os, const __int64& x)
127 {
128 char buffer[64];
129 sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
130 return os << buffer;
131 }
132 }
133 #endif /* _MSC_VER < 1300 */
134 a.dunfey 1.1
135 #define PEGASUS_HAVE_WINDOWS_THREADS
136
|
137 marek 1.3 /* use OpenPegasus semaphore based read/write locking mechanism */
138 #define PEGASUS_USE_SEMAPHORE_RWLOCK
139
|
140 kavita.gupta 1.4 #define PEGASUS_INTEGERS_BOUNDARY_ALIGNED
141
|
142 a.dunfey 1.1 #endif /* Pegasus_Platform_WIN64_IA64_MSVC_h */
|