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