|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68785 - in trunk/boost/config: . stdlib
From: chris_at_[hidden]
Date: 2011-02-11 15:37:27
Author: chrisj
Date: 2011-02-11 15:37:03 EST (Fri, 11 Feb 2011)
New Revision: 68785
URL: http://svn.boost.org/trac/boost/changeset/68785
Log:
Add basic support for the libc++ standard library
Added:
trunk/boost/config/stdlib/libcpp.hpp (contents, props changed)
Text files modified:
trunk/boost/config/select_stdlib_config.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/config/select_stdlib_config.hpp
==============================================================================
--- trunk/boost/config/select_stdlib_config.hpp (original)
+++ trunk/boost/config/select_stdlib_config.hpp 2011-02-11 15:37:03 EST (Fri, 11 Feb 2011)
@@ -40,6 +40,10 @@
// Rogue Wave library:
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
+#elif defined(_LIBCPP_VERSION)
+// libc++
+# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcpp.hpp"
+
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
// GNU libstdc++ 3
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
Added: trunk/boost/config/stdlib/libcpp.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/config/stdlib/libcpp.hpp 2011-02-11 15:37:03 EST (Fri, 11 Feb 2011)
@@ -0,0 +1,22 @@
+// (C) Copyright Christopher Jefferson 2011.
+// 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)
+
+// See http://www.boost.org for most recent version.
+
+// config for libc++
+// Might need more in here later.
+
+#if !defined(_LIBCPP_VERSION)
+# include <ciso646>
+# if !defined(_LIBCPP_VERSION)
+# error "This is not libc++!"
+# endif
+#endif
+
+#define BOOST_STDLIB "libc++ version " BOOST_STRINGIZE(_LIBCPP_VERSION)
+
+#define BOOST_HAS_THREADS
+
+// --- end ---
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk