Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: src/win32-headers.h

Issue 23490015: Reland^2 "Add Chromium-style TimeDelta, Time and TimeTicks classes, and a new ElapsedTimer class." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some windows cleanup Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/profile-generator.cc ('k') | src/win32-math.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 // with the distribution. 11 // with the distribution.
12 // * Neither the name of Google Inc. nor the names of its 12 // * Neither the name of Google Inc. nor the names of its
13 // contributors may be used to endorse or promote products derived 13 // contributors may be used to endorse or promote products derived
14 // from this software without specific prior written permission. 14 // from this software without specific prior written permission.
15 // 15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_WIN32_HEADERS_H_
29 #define V8_WIN32_HEADERS_H_
30
28 #ifndef WIN32_LEAN_AND_MEAN 31 #ifndef WIN32_LEAN_AND_MEAN
29 // WIN32_LEAN_AND_MEAN implies NOCRYPT and NOGDI. 32 // WIN32_LEAN_AND_MEAN implies NOCRYPT and NOGDI.
30 #define WIN32_LEAN_AND_MEAN 33 #define WIN32_LEAN_AND_MEAN
31 #endif 34 #endif
32 #ifndef NOMINMAX 35 #ifndef NOMINMAX
33 #define NOMINMAX 36 #define NOMINMAX
34 #endif 37 #endif
35 #ifndef NOKERNEL 38 #ifndef NOKERNEL
36 #define NOKERNEL 39 #define NOKERNEL
37 #endif 40 #endif
(...skipping 10 matching lines...) Expand all
48 #define NOMCX 51 #define NOMCX
49 #endif 52 #endif
50 // Require Windows XP or higher (this is required for the RtlCaptureContext 53 // Require Windows XP or higher (this is required for the RtlCaptureContext
51 // function to be present). 54 // function to be present).
52 #ifndef _WIN32_WINNT 55 #ifndef _WIN32_WINNT
53 #define _WIN32_WINNT 0x501 56 #define _WIN32_WINNT 0x501
54 #endif 57 #endif
55 58
56 #include <windows.h> 59 #include <windows.h>
57 60
58 #ifdef V8_WIN32_HEADERS_FULL
59 #include <signal.h> // For raise(). 61 #include <signal.h> // For raise().
60 #include <time.h> // For LocalOffset() implementation. 62 #include <time.h> // For LocalOffset() implementation.
61 #include <mmsystem.h> // For timeGetTime(). 63 #include <mmsystem.h> // For timeGetTime().
62 #ifdef __MINGW32__ 64 #ifdef __MINGW32__
63 // Require Windows XP or higher when compiling with MinGW. This is for MinGW 65 // Require Windows XP or higher when compiling with MinGW. This is for MinGW
64 // header files to expose getaddrinfo. 66 // header files to expose getaddrinfo.
65 #undef _WIN32_WINNT 67 #undef _WIN32_WINNT
66 #define _WIN32_WINNT 0x501 68 #define _WIN32_WINNT 0x501
67 #endif // __MINGW32__ 69 #endif // __MINGW32__
68 #if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) 70 #if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR)
69 #include <dbghelp.h> // For SymLoadModule64 and al. 71 #include <dbghelp.h> // For SymLoadModule64 and al.
70 #include <errno.h> // For STRUNCATE 72 #include <errno.h> // For STRUNCATE
71 #endif // !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR) 73 #endif // !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR)
72 #include <limits.h> // For INT_MAX and al. 74 #include <limits.h> // For INT_MAX and al.
73 #include <tlhelp32.h> // For Module32First and al. 75 #include <tlhelp32.h> // For Module32First and al.
74 76
75 // These additional WIN32 includes have to be right here as the #undef's below 77 // These additional WIN32 includes have to be right here as the #undef's below
76 // makes it impossible to have them elsewhere. 78 // makes it impossible to have them elsewhere.
77 #include <winsock2.h> 79 #include <winsock2.h>
78 #include <ws2tcpip.h> 80 #include <ws2tcpip.h>
79 #ifndef __MINGW32__ 81 #ifndef __MINGW32__
80 #include <wspiapi.h> 82 #include <wspiapi.h>
81 #endif // __MINGW32__ 83 #endif // __MINGW32__
82 #include <process.h> // For _beginthreadex(). 84 #include <process.h> // For _beginthreadex().
83 #include <stdlib.h> 85 #include <stdlib.h>
84 #endif // V8_WIN32_HEADERS_FULL
85 86
86 #undef VOID 87 #undef VOID
87 #undef DELETE 88 #undef DELETE
88 #undef IN 89 #undef IN
89 #undef THIS 90 #undef THIS
90 #undef CONST 91 #undef CONST
91 #undef NAN 92 #undef NAN
92 #undef UNKNOWN 93 #undef UNKNOWN
93 #undef NONE 94 #undef NONE
94 #undef ANY 95 #undef ANY
95 #undef IGNORE 96 #undef IGNORE
96 #undef GetObject 97 #undef GetObject
97 #undef CreateMutex 98 #undef CreateMutex
98 #undef CreateSemaphore 99 #undef CreateSemaphore
99 #undef Yield 100 #undef Yield
101
102 #endif // V8_WIN32_HEADERS_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | src/win32-math.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698