1 karl 1.23 //%2005////////////////////////////////////////////////////////////////////////
|
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 mike 1.9 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
13 kumpf 1.12 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
16 mike 1.9 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
18 //
|
19 kumpf 1.12 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
20 mike 1.9 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
22 kumpf 1.12 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
25 mike 1.9 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_Platform_WIN32_IX86_MSVC_h
33 #define Pegasus_Platform_WIN32_IX86_MSVC_h
34
|
35 kumpf 1.13 #define PEGASUS_OS_TYPE_WINDOWS
36
37 #define PEGASUS_EXPORT __declspec(dllexport)
38
39 #define PEGASUS_IMPORT __declspec(dllimport)
|
40 mike 1.9
41 #define PEGASUS_OS_WIN32
42
43 #define PEGASUS_ARCHITECTURE_IX86
44
45 #define PEGASUS_COMPILER_MSVC
46
47 #define PEGASUS_UINT64 unsigned __int64
48
49 #define PEGASUS_SINT64 __int64
|
50 s.hills 1.17
|
51 kumpf 1.14 #define PEGASUS_SINT64_LITERAL(X) Sint64(X)
52 #define PEGASUS_UINT64_LITERAL(X) Uint64(X)
|
53 mday 1.10
|
54 kumpf 1.15 #define PEGASUS_64BIT_CONVERSION_WIDTH "I64"
55
|
56 mike 1.9 #define PEGASUS_HAVE_NAMESPACES
57
58 #define PEGASUS_HAVE_EXPLICIT
59
60 #define PEGASUS_HAVE_MUTABLE
61
62 // #define PEGASUS_HAVE_FOR_SCOPE
63
64 #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
65
|
66 kumpf 1.13 #define PEGASUS_HAVE_IOS_BINARY
|
67 s.hills 1.17
|
68 kumpf 1.19 #define PEGASUS_MAXHOSTNAMELEN 64
69
|
70 mike 1.27 #define PEGASUS_DISABLE_INTERNAL_INLINES
71
|
72 david.dillard 1.26 #define PEGASUS_SOCKET SOCKET
73 #define PEGASUS_INVALID_SOCKET INVALID_SOCKET
74
|
75 s.hills 1.17 // Exclude rarely-used stuff from Windows headers
76 // Note: this is also an easy way to avoid the often introduced
77 // winsock.h/winsock2.h mixing compiler error problems.
|
78 david.dillard 1.20 #ifndef WIN32_LEAN_AND_MEAN
|
79 s.hills 1.17 #define WIN32_LEAN_AND_MEAN
|
80 david.dillard 1.20 #endif
|
81 kumpf 1.13
|
82 mark.hamzy 1.32 #ifdef PEGASUS_INTERNALONLY
|
83 kumpf 1.13 // Suppress this warning: "identifier was truncated to '255' characters in the
84 // debug information":
85 #pragma warning( disable : 4786 )
86
87 // Suppress this warning: "class <XXX> needs to have dll-interface to be used
88 // by clients of class <YYY>"
89 #pragma warning ( disable : 4251 )
90
|
91 tony 1.16 // Supress this warning : non dll-interface class <XXX> used as base
92 // for dll-interface class <YYY>
93 #pragma warning( disable : 4275 )
94
95 // Supresss this warning : C++ exception specification ignored except
96 // to indicate a function is not __declspec(nothrow)
97 #pragma warning( disable : 4290 )
98
|
99 kumpf 1.13 // Suppress this warning : "'this' : used in base member initializer list"
100 #pragma warning ( disable : 4355 )
|
101 tony 1.16
|
102 mark.hamzy 1.32 // Suppress this warning: 'type' : forcing value to bool 'true' or 'false' (performance warning)
103 #pragma warning( disable : 4800 )
104 #endif
105
|
106 mike 1.28 //
107 // Prior to Microsoft Visual Studio 7.0, there were no stream inserters for
108 // __int64 and unsigned __int64. We declare them if the _MSC_VER is less than
109 // 1300 (subtract 600 to get the version of Visual Studio). Look in
110 // SystemWindows.cpp for the definitions.
111 //
|
112 mike 1.30 #if (_MSC_VER < 1300) && defined(PEGASUS_INTERNALONLY) && defined(__cplusplus)
|
113 mike 1.28 # include <iostream>
114 namespace std
115 {
|
116 mike 1.29 inline ostream& operator<<(ostream& os, const unsigned __int64& x)
|
117 mike 1.28 {
118 char buffer[64];
119 sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "u", x);
120 return os << buffer;
121 }
122
|
123 mike 1.29 inline ostream& operator<<(ostream& os, const __int64& x)
|
124 mike 1.28 {
125 char buffer[64];
126 sprintf(buffer, "%" PEGASUS_64BIT_CONVERSION_WIDTH "d", x);
127 return os << buffer;
128 }
129 }
130 #endif /* _MSC_VER < 1300 */
|
131 mike 1.9
|
132 mike 1.31 #define PEGASUS_SOCKLEN_T int
133
|
134 mike 1.9 #endif /* Pegasus_Platform_WIN32_IX86_MSVC_h */
|