OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_BASE_WIN32_HEADERS_H_ | 5 #ifndef V8_BASE_WIN32_HEADERS_H_ |
6 #define V8_BASE_WIN32_HEADERS_H_ | 6 #define V8_BASE_WIN32_HEADERS_H_ |
7 | 7 |
8 #ifndef WIN32_LEAN_AND_MEAN | 8 #ifndef WIN32_LEAN_AND_MEAN |
9 // WIN32_LEAN_AND_MEAN implies NOCRYPT and NOGDI. | 9 // WIN32_LEAN_AND_MEAN implies NOCRYPT and NOGDI. |
10 #define WIN32_LEAN_AND_MEAN | 10 #define WIN32_LEAN_AND_MEAN |
11 #endif | 11 #endif |
12 #ifndef NOMINMAX | 12 #ifndef NOMINMAX |
13 #define NOMINMAX | 13 #define NOMINMAX |
14 #endif | 14 #endif |
15 #ifndef NOKERNEL | 15 #ifndef NOKERNEL |
16 #define NOKERNEL | 16 #define NOKERNEL |
17 #endif | 17 #endif |
18 #ifndef NOUSER | 18 #ifndef NOUSER |
19 #define NOUSER | 19 #define NOUSER |
20 #endif | 20 #endif |
21 #ifndef NOSERVICE | 21 #ifndef NOSERVICE |
22 #define NOSERVICE | 22 #define NOSERVICE |
23 #endif | 23 #endif |
24 #ifndef NOSOUND | 24 #ifndef NOSOUND |
25 #define NOSOUND | 25 #define NOSOUND |
26 #endif | 26 #endif |
27 #ifndef NOMCX | 27 #ifndef NOMCX |
28 #define NOMCX | 28 #define NOMCX |
29 #endif | 29 #endif |
30 // Require Windows XP or higher (this is required for the RtlCaptureContext | 30 // Require Windows Vista or higher (this is required for the |
31 // function to be present). | 31 // QueryThreadCycleTime function to be present). |
32 #ifndef _WIN32_WINNT | 32 #ifndef _WIN32_WINNT |
33 #define _WIN32_WINNT 0x501 | 33 #define _WIN32_WINNT 0x0600 |
34 #endif | 34 #endif |
35 | 35 |
36 #include <windows.h> | 36 #include <windows.h> |
37 | 37 |
38 #include <mmsystem.h> // For timeGetTime(). | 38 #include <mmsystem.h> // For timeGetTime(). |
39 #include <signal.h> // For raise(). | 39 #include <signal.h> // For raise(). |
40 #include <time.h> // For LocalOffset() implementation. | 40 #include <time.h> // For LocalOffset() implementation. |
41 #ifdef __MINGW32__ | 41 #ifdef __MINGW32__ |
42 // Require Windows XP or higher when compiling with MinGW. This is for MinGW | 42 // Require Windows XP or higher when compiling with MinGW. This is for MinGW |
43 // header files to expose getaddrinfo. | 43 // header files to expose getaddrinfo. |
(...skipping 30 matching lines...) Expand all Loading... |
74 #undef STRICT | 74 #undef STRICT |
75 #undef GetObject | 75 #undef GetObject |
76 #undef CreateSemaphore | 76 #undef CreateSemaphore |
77 #undef Yield | 77 #undef Yield |
78 #undef RotateRight32 | 78 #undef RotateRight32 |
79 #undef RotateLeft32 | 79 #undef RotateLeft32 |
80 #undef RotateRight64 | 80 #undef RotateRight64 |
81 #undef RotateLeft64 | 81 #undef RotateLeft64 |
82 | 82 |
83 #endif // V8_BASE_WIN32_HEADERS_H_ | 83 #endif // V8_BASE_WIN32_HEADERS_H_ |
OLD | NEW |