Kea 2.2.0
asio_wrapper.h
Go to the documentation of this file.
1// Copyright (C) 2016-2021 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6#ifndef ASIO_WRAPPER_H
7#define ASIO_WRAPPER_H 1
8
62
63#define GNU_CC_VERSION (__GNUC__ * 10000 \
64 + __GNUC_MINOR__ * 100 \
65 + __GNUC_PATCHLEVEL__)
66
67#if (defined(__GNUC__) && \
68 ((GNU_CC_VERSION >= 50200) && (GNU_CC_VERSION < 60000)) \
69 && defined(BOOST_ERROR_CODE_HEADER_ONLY))
70#pragma GCC push_options
71#pragma GCC optimize ("O0")
72#include <boost/asio.hpp>
73#pragma GCC pop_options
74#else
75#include <boost/asio.hpp>
76#endif
77
78#endif // ASIO_WRAPPER_H