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 |
(...skipping 10 matching lines...) Expand all Loading... | |
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 XP or higher (this is required for the RtlCaptureContext |
31 // function to be present). | 31 // function to be present). |
fmeawad
2016/05/25 23:40:31
nit: Update the comment
lpy
2016/05/26 16:25:22
Done.
| |
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. |
44 #undef _WIN32_WINNT | 44 #undef _WIN32_WINNT |
45 #define _WIN32_WINNT 0x501 | 45 #define _WIN32_WINNT 0x0600 |
46 #endif // __MINGW32__ | 46 #endif // __MINGW32__ |
47 #if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) | 47 #if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) |
48 #include <dbghelp.h> // For SymLoadModule64 and al. | 48 #include <dbghelp.h> // For SymLoadModule64 and al. |
49 #include <errno.h> // For STRUNCATE | 49 #include <errno.h> // For STRUNCATE |
50 #endif // !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) | 50 #endif // !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) |
51 #include <limits.h> // For INT_MAX and al. | 51 #include <limits.h> // For INT_MAX and al. |
52 #include <tlhelp32.h> // For Module32First and al. | 52 #include <tlhelp32.h> // For Module32First and al. |
53 | 53 |
54 // These additional WIN32 includes have to be right here as the #undef's below | 54 // These additional WIN32 includes have to be right here as the #undef's below |
55 // makes it impossible to have them elsewhere. | 55 // makes it impossible to have them elsewhere. |
(...skipping 18 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 |