| 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 17 matching lines...) Expand all Loading... |
| 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). |
| 32 #ifndef _WIN32_WINNT | 32 #ifndef _WIN32_WINNT |
| 33 #define _WIN32_WINNT 0x501 | 33 #define _WIN32_WINNT 0x501 |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #include <windows.h> | 36 #include <windows.h> |
| 37 | 37 |
| 38 #include <mmsystem.h> // For timeGetTime(). |
| 38 #include <signal.h> // For raise(). | 39 #include <signal.h> // For raise(). |
| 39 #include <time.h> // For LocalOffset() implementation. | 40 #include <time.h> // For LocalOffset() implementation. |
| 40 #include <mmsystem.h> // For timeGetTime(). | |
| 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 0x501 |
| 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) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 70 #undef UNKNOWN | 70 #undef UNKNOWN |
| 71 #undef NONE | 71 #undef NONE |
| 72 #undef ANY | 72 #undef ANY |
| 73 #undef IGNORE | 73 #undef IGNORE |
| 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 | 78 |
| 79 #endif // V8_BASE_WIN32_HEADERS_H_ | 79 #endif // V8_BASE_WIN32_HEADERS_H_ |
| OLD | NEW |