]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // |
2 | // serial_port.hpp | |
3 | // ~~~~~~~~~~~~~~~ | |
4 | // | |
5 | // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
6 | // Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com) | |
7 | // | |
8 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
9 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
10 | // | |
11 | ||
12 | #ifndef BOOST_ASIO_SERIAL_PORT_HPP | |
13 | #define BOOST_ASIO_SERIAL_PORT_HPP | |
14 | ||
15 | #if defined(_MSC_VER) && (_MSC_VER >= 1200) | |
16 | # pragma once | |
17 | #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) | |
18 | ||
19 | #include <boost/asio/detail/config.hpp> | |
20 | ||
21 | #if defined(BOOST_ASIO_HAS_SERIAL_PORT) \ | |
22 | || defined(GENERATING_DOCUMENTATION) | |
23 | ||
24 | #include <boost/asio/basic_serial_port.hpp> | |
25 | ||
26 | namespace boost { | |
27 | namespace asio { | |
28 | ||
29 | /// Typedef for the typical usage of a serial port. | |
30 | typedef basic_serial_port<> serial_port; | |
31 | ||
32 | } // namespace asio | |
33 | } // namespace boost | |
34 | ||
35 | #endif // defined(BOOST_ASIO_HAS_SERIAL_PORT) | |
36 | // || defined(GENERATING_DOCUMENTATION) | |
37 | ||
38 | #endif // BOOST_ASIO_SERIAL_PORT_HPP |