Commit d9e0b59d authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 3

Create portability/Config.h

Summary: Because including the root portability header just to get a couple of defines to be able to enable things is a waste. In addition, it would be nice if the config defines are never needed outside of the portability headers.

Reviewed By: yfeldblum

Differential Revision: D3059651

fb-gh-sync-id: 1cb9910d850ea015616a598808556b4815b3fb74
shipit-source-id: 1cb9910d850ea015616a598808556b4815b3fb74
parent 946d061d
...@@ -268,6 +268,7 @@ nobase_follyinclude_HEADERS = \ ...@@ -268,6 +268,7 @@ nobase_follyinclude_HEADERS = \
Padded.h \ Padded.h \
PicoSpinLock.h \ PicoSpinLock.h \
Portability.h \ Portability.h \
portability/Config.h \
portability/Constexpr.h \ portability/Constexpr.h \
portability/Environment.h \ portability/Environment.h \
portability/GFlags.h \ portability/GFlags.h \
......
...@@ -21,13 +21,7 @@ ...@@ -21,13 +21,7 @@
#include <cstddef> #include <cstddef>
#ifndef FOLLY_NO_CONFIG #include <folly/portability/Config.h>
#include <folly/folly-config.h>
#endif
#ifdef FOLLY_PLATFORM_CONFIG
#include FOLLY_PLATFORM_CONFIG
#endif
#if FOLLY_HAVE_FEATURES_H #if FOLLY_HAVE_FEATURES_H
#include <features.h> #include <features.h>
......
/*
* Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#ifndef FOLLY_NO_CONFIG
#include <folly/folly-config.h>
#endif
#ifdef FOLLY_PLATFORM_CONFIG
#include FOLLY_PLATFORM_CONFIG
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment