|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52504 - in trunk/boost/config: . platform
From: john_at_[hidden]
Date: 2009-04-20 07:27:06
Author: johnmaddock
Date: 2009-04-20 07:27:04 EDT (Mon, 20 Apr 2009)
New Revision: 52504
URL: http://svn.boost.org/trac/boost/changeset/52504
Log:
Added support for vxworks.hpp.
Fixes #2959.
Added:
trunk/boost/config/platform/vxworks.hpp (contents, props changed)
Text files modified:
trunk/boost/config/select_platform_config.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Added: trunk/boost/config/platform/vxworks.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/config/platform/vxworks.hpp 2009-04-20 07:27:04 EDT (Mon, 20 Apr 2009)
@@ -0,0 +1,31 @@
+// (C) Copyright Dustin Spicuzza 2009.
+// 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.
+
+// vxWorks specific config options:
+
+#define BOOST_PLATFORM "vxWorks"
+
+#define BOOST_NO_CWCHAR
+#define BOOST_NO_INTRINSIC_WCHAR_T
+
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
+#define BOOST_NO_INT64_T
+#endif
+
+#define BOOST_HAS_UNISTD_H
+
+// these allow posix_features to work, since vxWorks doesn't
+// define them itself
+#define _POSIX_TIMERS 1
+#define _POSIX_THREADS 1
+
+// vxworks doesn't work with asio serial ports
+#define BOOST_ASIO_DISABLE_SERIAL_PORT
+
+// boilerplate code:
+#include <boost/config/posix_features.hpp>
+
Modified: trunk/boost/config/select_platform_config.hpp
==============================================================================
--- trunk/boost/config/select_platform_config.hpp (original)
+++ trunk/boost/config/select_platform_config.hpp 2009-04-20 07:27:04 EDT (Mon, 20 Apr 2009)
@@ -61,6 +61,10 @@
// QNX:
# define BOOST_PLATFORM_CONFIG "boost/config/platform/qnxnto.hpp"
+#elif defined(__VXWORKS__)
+// vxWorks:
+# define BOOST_PLATFORM_CONFIG "boost/config/platform/vxworks.hpp"
+
#else
# if defined(unix) \
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