Improve platform detection and reduce includes:

The existing platform detection code was derived from the old Beast
library, which was, itself, derived from JUCE.

This commit removes that code and replaces it with the Boost.Predef
library which defines a consistent set of compiler, architecture,
operating system, library, and other version numbers.

For more on Boost.Predef, please see the Boost documentation. The
documentation for the current version as of this writing is at:
https://www.boost.org/doc/libs/1_71_0/doc/html/predef.html
This commit is contained in:
Nik Bougalis
2019-12-02 02:15:44 -08:00
parent 4a1148eb28
commit 63503ee8f0
44 changed files with 120 additions and 1058 deletions

View File

@@ -18,10 +18,11 @@
//==============================================================================
#include <ripple/basics/contract.h>
#include <ripple/beast/core/PlatformConfig.h>
#include <ripple/beast/core/SemanticVersion.h>
#include <ripple/protocol/BuildInfo.h>
#include <boost/preprocessor/stringize.hpp>
namespace ripple {
namespace BuildInfo {
@@ -42,7 +43,7 @@ char const* const versionString = "1.5.0-b1"
#endif
#ifdef SANITIZER
BEAST_PP_STR1_(SANITIZER)
BOOST_PP_STRINGIZE(SANITIZER)
#endif
#endif