Jeff Thompson | 86b6d64 | 2013-10-17 15:01:56 -0700 | [diff] [blame] | 1 | // (C) Copyright 2010 Daniel James |
| 2 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) |
| 4 | |
| 5 | // See http://www.boost.org/libs/iostreams for documentation. |
| 6 | |
| 7 | #ifndef NDNBOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED |
| 8 | #define NDNBOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED |
| 9 | |
| 10 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
| 11 | # pragma once |
| 12 | #endif |
| 13 | |
| 14 | #include <ndnboost/config.hpp> |
| 15 | |
| 16 | // If Boost.Exception has NDNBOOST_ATTRIBUTE_NORETURN |
| 17 | #if defined(_MSC_VER) || defined(__GNUC__) |
| 18 | #define NDNBOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \ |
| 19 | NDNBOOST_UNREACHABLE_RETURN(x) |
| 20 | #else |
| 21 | #define NDNBOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \ |
| 22 | return x; |
| 23 | #endif |
| 24 | |
| 25 | #endif |