From 64b2d0da362278e176352dd14f74772b9729733e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 5 Nov 2013 13:12:13 +0800 Subject: [PATCH] Add a corresponding .h file for atom_main.cc. It's required if we want to include Chromium headers before C headers and do not break cpplint rules in the meanwhile. --- app/atom_main.cc | 4 ++-- app/atom_main.h | 5 +++++ atom.gyp | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 app/atom_main.h diff --git a/app/atom_main.cc b/app/atom_main.cc index 669d7f7..5795418 100644 --- a/app/atom_main.cc +++ b/app/atom_main.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "app/atom_main.h" + #include #include @@ -21,8 +23,6 @@ #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[]); diff --git a/app/atom_main.h b/app/atom_main.h new file mode 100644 index 0000000..bd4c268 --- /dev/null +++ b/app/atom_main.h @@ -0,0 +1,5 @@ +// Copyright (c) 2013 GitHub, Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/public/app/content_main.h" diff --git a/atom.gyp b/atom.gyp index 1e06563..b99db5d 100644 --- a/atom.gyp +++ b/atom.gyp @@ -4,6 +4,7 @@ 'product_name': 'Atom', 'app_sources': [ 'app/atom_main.cc', + 'app/atom_main.h', ], 'bundle_sources': [ 'browser/mac/atom.icns', -- 2.7.4