From 7d09af45559112bc86afc8bf78f7a8c7babdcff7 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 16 Apr 2017 18:29:44 +0100 Subject: [PATCH] Apply Diab compiler support from https://svn.boost.org/trac/boost/ticket/11655. --- include/boost/config/compiler/diab.hpp | 19 +++++++++++++++++++ .../boost/config/select_compiler_config.hpp | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 include/boost/config/compiler/diab.hpp diff --git a/include/boost/config/compiler/diab.hpp b/include/boost/config/compiler/diab.hpp new file mode 100644 index 00000000..0de72d06 --- /dev/null +++ b/include/boost/config/compiler/diab.hpp @@ -0,0 +1,19 @@ +// (C) Copyright Brian Kuhl 2016. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +// Check this is a recent EDG based compiler, otherwise we don't support it here: + + +#ifndef __EDG_VERSION__ +# error "Unknown Diab compiler version - please run the configure tests and report the results" +#endif + +#include "boost/config/compiler/common_edg.hpp" + +#define BOOST_HAS_LONG_LONG +#define BOOST_NO_TWO_PHASE_NAME_LOOKUP +#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST +#define BOOST_NO_CXX11_HDR_CODECVT +#define BOOST_COMPILER "Wind River Diab " BOOST_STRINGIZE(__VERSION_NUMBER__) diff --git a/include/boost/config/select_compiler_config.hpp b/include/boost/config/select_compiler_config.hpp index 508d5756..97d47c1c 100644 --- a/include/boost/config/select_compiler_config.hpp +++ b/include/boost/config/select_compiler_config.hpp @@ -48,6 +48,10 @@ // Digital Mars C++ # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp" +#elif defined __DCC__ +// Wind River Diab C++ +# define BOOST_COMPILER_CONFIG "boost/config/compiler/diab.hpp" + # elif defined(__GNUC__) && !defined(__ibmxl__) // GNU C++: # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"