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

Unified Diff: chrome/nacl/nacl_exe_win_64.cc

Issue 311413003: Add a win_force_console=1 GYP flag that makes chrome.exe and nacl64.exe console applications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« build/common.gypi ('K') | « chrome/chrome_exe.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_exe_win_64.cc
diff --git a/chrome/nacl/nacl_exe_win_64.cc b/chrome/nacl/nacl_exe_win_64.cc
index a0d5351f8d4b6467b3c9a2325bbd4a2886f3d445..64ffcc5a41dc3227d11f18927bc68e77d832fe0f 100644
--- a/chrome/nacl/nacl_exe_win_64.cc
+++ b/chrome/nacl/nacl_exe_win_64.cc
@@ -17,7 +17,11 @@ base::LazyInstance<chrome::ChromeBreakpadClient>::Leaky
} // namespace
-int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
+#if !defined(FORCE_CONSOLE_SUBSYSTEM)
+int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t*, int) {
+#else
+int main() {
+#endif
base::AtExitManager exit_manager;
CommandLine::Init(0, NULL);
« build/common.gypi ('K') | « chrome/chrome_exe.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698