]> granicus.if.org Git - pdns/commitdiff
rec: Always test if BOOST_VERSION is < 1.61, not >, for readability
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 23 Sep 2016 14:58:05 +0000 (16:58 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 27 Sep 2016 10:16:53 +0000 (12:16 +0200)
(cherry picked from commit 64413f6afd9b3dfeb1bef158f48bb3be496a4e04)

pdns/mtasker_fcontext.cc

index d8d4e2a1a5aa1ea91ae60a947f6210bf311ae934..8d96fa168f5d274d9d9484f40f6c806d5a7fb204 100644 (file)
 #include <cassert>
 #include <type_traits>
 #include <boost/version.hpp>
-#if BOOST_VERSION >= 106100
-#include <boost/context/detail/fcontext.hpp>
-using boost::context::detail::make_fcontext;
-#else
+#if BOOST_VERSION < 106100
 #include <boost/context/fcontext.hpp>
 using boost::context::make_fcontext;
-#endif /* BOOST_VERSION >= 106100 */
+#else
+#include <boost/context/detail/fcontext.hpp>
+using boost::context::detail::make_fcontext;
+#endif /* BOOST_VERSION < 106100 */
 
 
 #if BOOST_VERSION < 105600