From ebbd9ff414be2c2c09b52ee478e6532481314904 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 19 Sep 2013 09:00:48 -0700 Subject: [PATCH] Move TargetPlatform.h to beast/Config.h --- Builds/VisualStudio2012/beast.vcxproj | 2 +- Builds/VisualStudio2012/beast.vcxproj.filters | 6 +++--- .../beast_core/system/TargetPlatform.h => beast/Config.h | 6 ++++-- modules/beast_core/beast_core.h | 2 +- modules/beast_core/native/BasicNativeHeaders.h | 3 ++- modules/beast_core/system/BeforeBoost.h | 2 +- modules/beast_sqlite/beast_sqlite.h | 2 +- 7 files changed, 13 insertions(+), 10 deletions(-) rename modules/beast_core/system/TargetPlatform.h => beast/Config.h (98%) diff --git a/Builds/VisualStudio2012/beast.vcxproj b/Builds/VisualStudio2012/beast.vcxproj index 09664a9b4..a22b26c16 100644 --- a/Builds/VisualStudio2012/beast.vcxproj +++ b/Builds/VisualStudio2012/beast.vcxproj @@ -69,6 +69,7 @@ + @@ -244,7 +245,6 @@ - diff --git a/Builds/VisualStudio2012/beast.vcxproj.filters b/Builds/VisualStudio2012/beast.vcxproj.filters index fd4484bb3..18657906b 100644 --- a/Builds/VisualStudio2012/beast.vcxproj.filters +++ b/Builds/VisualStudio2012/beast.vcxproj.filters @@ -807,9 +807,6 @@ beast_core\system - - beast_core\system - beast_core\containers @@ -1041,6 +1038,9 @@ beast\net + + beast + diff --git a/modules/beast_core/system/TargetPlatform.h b/beast/Config.h similarity index 98% rename from modules/beast_core/system/TargetPlatform.h rename to beast/Config.h index 2cb46c333..d67089d4c 100644 --- a/modules/beast_core/system/TargetPlatform.h +++ b/beast/Config.h @@ -21,8 +21,10 @@ */ //============================================================================== -#ifndef BEAST_CORE_TARGETPLATFORM_H_INCLUDED -#define BEAST_CORE_TARGETPLATFORM_H_INCLUDED +#ifndef BEAST_CONFIG_H_INCLUDED +#define BEAST_CONFIG_H_INCLUDED + +// VFALCO NOTE this is analogous to //============================================================================== /* This file figures out which platform is being built, and defines some macros diff --git a/modules/beast_core/beast_core.h b/modules/beast_core/beast_core.h index c7834a004..c6943aab0 100644 --- a/modules/beast_core/beast_core.h +++ b/modules/beast_core/beast_core.h @@ -173,7 +173,7 @@ Some files contain portions of these external projects, licensed separately: */ // TargetPlatform.h should not use anything from BeastConfig.h -#include "system/TargetPlatform.h" +#include "../../beast/Config.h" #include "system/BeastConfigCheck.h" # include "system/BeforeBoost.h" diff --git a/modules/beast_core/native/BasicNativeHeaders.h b/modules/beast_core/native/BasicNativeHeaders.h index dae1b669a..e20e4fd0b 100644 --- a/modules/beast_core/native/BasicNativeHeaders.h +++ b/modules/beast_core/native/BasicNativeHeaders.h @@ -24,7 +24,8 @@ #ifndef BEAST_BASICNATIVEHEADERS_H_INCLUDED #define BEAST_BASICNATIVEHEADERS_H_INCLUDED -#include "../system/TargetPlatform.h" +#include "../../../beast/Config.h" + #undef T //============================================================================== diff --git a/modules/beast_core/system/BeforeBoost.h b/modules/beast_core/system/BeforeBoost.h index a314cc667..2cf22d58a 100644 --- a/modules/beast_core/system/BeforeBoost.h +++ b/modules/beast_core/system/BeforeBoost.h @@ -21,7 +21,7 @@ #define BEAST_CORE_SYSTEM_BEFOREBOOST_H_INCLUDED // TargetPlatform.h should not use anything from BeastConfig.h -#include "TargetPlatform.h" +#include "../../../beast/Config.h" #include "BeastConfigCheck.h" // This file should be included before including any boost headers. diff --git a/modules/beast_sqlite/beast_sqlite.h b/modules/beast_sqlite/beast_sqlite.h index 4dff28944..1c1b5c615 100644 --- a/modules/beast_sqlite/beast_sqlite.h +++ b/modules/beast_sqlite/beast_sqlite.h @@ -30,7 +30,7 @@ see BeastConfig.h. */ -#include "../beast_core/system/TargetPlatform.h" +#include "../../../beast/beast/Config.h" #if BEAST_IOS || BEAST_MAC # define BEAST_HAVE_NATIVE_SQLITE 1