From 8bb3b53833bcb946728acfdd983d014376333ea2 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 5 Nov 2013 10:00:11 +0800 Subject: [PATCH] Make cpplint pass headers test without setting "NOLINT". --- app/atom_main.cc | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/app/atom_main.cc b/app/atom_main.cc index f0193bf..669d7f7 100644 --- a/app/atom_main.cc +++ b/app/atom_main.cc @@ -4,27 +4,32 @@ #include #include + +#if defined(OS_WIN) #include #include #include +#include +#include + +#include "app/atom_main_delegate.h" +#include "base/environment.h" +#include "content/public/app/startup_helper_win.h" +#include "sandbox/win/src/sandbox_types.h" +#else // defined(OS_WIN) +#include "app/atom_library_main.h" +#endif // defined(OS_MACOSX) || defined(OS_LINUX) + #include "content/public/app/content_main.h" +// Declaration of node::Start. namespace node { int Start(int argc, char *argv[]); } #if defined(OS_WIN) -#include // NOLINT -#include // NOLINT - -#include "app/atom_main_delegate.h" -#include "base/environment.h" -#include "content/public/app/startup_helper_win.h" -#include "sandbox/win/src/sandbox_types.h" - - int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) { int argc = 0; wchar_t** wargv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); @@ -86,8 +91,6 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) { #else // defined(OS_WIN) -#include "app/atom_library_main.h" - int main(int argc, const char* argv[]) { char* node_indicator = getenv("ATOM_SHELL_INTERNAL_RUN_AS_NODE"); if (node_indicator != NULL && strcmp(node_indicator, "1") == 0) @@ -96,4 +99,4 @@ int main(int argc, const char* argv[]) { return AtomMain(argc, argv); } -#endif +#endif // defined(OS_MACOSX) || defined(OS_LINUX) -- 2.7.4