|
Boost-Commit : |
From: chris_at_[hidden]
Date: 2008-08-31 04:58:50
Author: chris_kohlhoff
Date: 2008-08-31 04:58:49 EDT (Sun, 31 Aug 2008)
New Revision: 48490
URL: http://svn.boost.org/trac/boost/changeset/48490
Log:
Don't build serial port test code when serial ports are not available.
Text files modified:
trunk/libs/asio/test/serial_port.cpp | 2 ++
trunk/libs/asio/test/serial_port_base.cpp | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/libs/asio/test/serial_port.cpp
==============================================================================
--- trunk/libs/asio/test/serial_port.cpp (original)
+++ trunk/libs/asio/test/serial_port.cpp 2008-08-31 04:58:49 EDT (Sun, 31 Aug 2008)
@@ -39,6 +39,7 @@
void test()
{
+#if defined(BOOST_ASIO_HAS_SERIAL_PORT)
using namespace boost::asio;
try
@@ -111,6 +112,7 @@
catch (std::exception&)
{
}
+#endif // defined(BOOST_ASIO_HAS_SERIAL_PORT)
}
} // namespace serial_port_compile
Modified: trunk/libs/asio/test/serial_port_base.cpp
==============================================================================
--- trunk/libs/asio/test/serial_port_base.cpp (original)
+++ trunk/libs/asio/test/serial_port_base.cpp 2008-08-31 04:58:49 EDT (Sun, 31 Aug 2008)
@@ -31,6 +31,7 @@
void test()
{
+#if defined(BOOST_ASIO_HAS_SERIAL_PORT)
using namespace boost::asio;
try
@@ -82,6 +83,7 @@
catch (std::exception&)
{
}
+#endif // defined(BOOST_ASIO_HAS_SERIAL_PORT)
}
} // namespace serial_port_base_compile
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