From 0ab9975751591b290db52ce8a125c353413c8ce2 Mon Sep 17 00:00:00 2001 From: octopus-prime Date: Wed, 28 Jun 2017 21:42:54 +0200 Subject: [PATCH] Fix BEAST_FALLTHROUGH in config --- CHANGELOG.md | 1 + include/beast/core/detail/config.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40fa2b43..6a809e3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Version 70: * Serialize in one step when possible * Add basic_parser header and body limits * Add parser::on_header to set a callback +* Fix BEAST_FALLTHROUGH API Changes: diff --git a/include/beast/core/detail/config.hpp b/include/beast/core/detail/config.hpp index 100348cc..461ca38b 100644 --- a/include/beast/core/detail/config.hpp +++ b/include/beast/core/detail/config.hpp @@ -14,7 +14,7 @@ #if BOOST_VERSION >= 106500 || ! defined(BOOST_GCC) || BOOST_GCC < 70000 # define BEAST_FALLTHROUGH BOOST_FALLTHROUGH #else -# define BEAST_FALLTHROUGH _attribute__((fallthrough)) +# define BEAST_FALLTHROUGH __attribute__((fallthrough)) #endif #endif