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

Side by Side Diff: src/platform-win32.cc

Issue 113576: Fix compilation on MinGW (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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 | « include/v8.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Require Windows 2000 or higher (this is required for the IsDebuggerPresent 51 // Require Windows 2000 or higher (this is required for the IsDebuggerPresent
52 // function to be present). 52 // function to be present).
53 #ifndef _WIN32_WINNT 53 #ifndef _WIN32_WINNT
54 #define _WIN32_WINNT 0x500 54 #define _WIN32_WINNT 0x500
55 #endif 55 #endif
56 56
57 #include <windows.h> 57 #include <windows.h>
58 58
59 #include <time.h> // For LocalOffset() implementation. 59 #include <time.h> // For LocalOffset() implementation.
60 #include <mmsystem.h> // For timeGetTime(). 60 #include <mmsystem.h> // For timeGetTime().
61 #ifdef __MINGW32__
62 // Require Windows XP or higher when compiling with MinGW. This is for MinGW
63 // header files to expose getaddrinfo.
64 #undef _WIN32_WINNT
65 #define _WIN32_WINNT 0x501
66 #endif // __MINGW32__
61 #ifndef __MINGW32__ 67 #ifndef __MINGW32__
62 #include <dbghelp.h> // For SymLoadModule64 and al. 68 #include <dbghelp.h> // For SymLoadModule64 and al.
63 #endif // __MINGW32__ 69 #endif // __MINGW32__
64 #include <limits.h> // For INT_MAX and al. 70 #include <limits.h> // For INT_MAX and al.
65 #include <tlhelp32.h> // For Module32First and al. 71 #include <tlhelp32.h> // For Module32First and al.
66 72
67 // These additional WIN32 includes have to be right here as the #undef's below 73 // These additional WIN32 includes have to be right here as the #undef's below
68 // makes it impossible to have them elsewhere. 74 // makes it impossible to have them elsewhere.
69 #include <winsock2.h> 75 #include <winsock2.h>
70 #include <ws2tcpip.h> 76 #include <ws2tcpip.h>
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 1869
1864 // Release the thread handles 1870 // Release the thread handles
1865 CloseHandle(data_->sampler_thread_); 1871 CloseHandle(data_->sampler_thread_);
1866 CloseHandle(data_->profiled_thread_); 1872 CloseHandle(data_->profiled_thread_);
1867 } 1873 }
1868 1874
1869 1875
1870 #endif // ENABLE_LOGGING_AND_PROFILING 1876 #endif // ENABLE_LOGGING_AND_PROFILING
1871 1877
1872 } } // namespace v8::internal 1878 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698