OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #endif | 49 #endif |
50 // Require Windows XP or higher (this is required for the RtlCaptureContext | 50 // Require Windows XP or higher (this is required for the RtlCaptureContext |
51 // function to be present). | 51 // function to be present). |
52 #ifndef _WIN32_WINNT | 52 #ifndef _WIN32_WINNT |
53 #define _WIN32_WINNT 0x501 | 53 #define _WIN32_WINNT 0x501 |
54 #endif | 54 #endif |
55 | 55 |
56 #include <windows.h> | 56 #include <windows.h> |
57 | 57 |
58 #ifdef V8_WIN32_HEADERS_FULL | 58 #ifdef V8_WIN32_HEADERS_FULL |
| 59 #include <signal.h> // For raise |
59 #include <time.h> // For LocalOffset() implementation. | 60 #include <time.h> // For LocalOffset() implementation. |
60 #include <mmsystem.h> // For timeGetTime(). | 61 #include <mmsystem.h> // For timeGetTime(). |
61 #ifdef __MINGW32__ | 62 #ifdef __MINGW32__ |
62 // Require Windows XP or higher when compiling with MinGW. This is for MinGW | 63 // Require Windows XP or higher when compiling with MinGW. This is for MinGW |
63 // header files to expose getaddrinfo. | 64 // header files to expose getaddrinfo. |
64 #undef _WIN32_WINNT | 65 #undef _WIN32_WINNT |
65 #define _WIN32_WINNT 0x501 | 66 #define _WIN32_WINNT 0x501 |
66 #endif // __MINGW32__ | 67 #endif // __MINGW32__ |
67 #if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) | 68 #if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) |
68 #include <dbghelp.h> // For SymLoadModule64 and al. | 69 #include <dbghelp.h> // For SymLoadModule64 and al. |
(...skipping 21 matching lines...) Expand all Loading... |
90 #undef NAN | 91 #undef NAN |
91 #undef TRUE | 92 #undef TRUE |
92 #undef FALSE | 93 #undef FALSE |
93 #undef UNKNOWN | 94 #undef UNKNOWN |
94 #undef NONE | 95 #undef NONE |
95 #undef ANY | 96 #undef ANY |
96 #undef IGNORE | 97 #undef IGNORE |
97 #undef GetObject | 98 #undef GetObject |
98 #undef CreateMutex | 99 #undef CreateMutex |
99 #undef CreateSemaphore | 100 #undef CreateSemaphore |
OLD | NEW |