Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix gcc builds
[simgrid.git] / src / kernel / context / ContextBoost.hpp
index fcd5489..adca9a2 100644 (file)
@@ -6,6 +6,12 @@
 #ifndef SIMGRID_KERNEL_CONTEXT_BOOST_CONTEXT_HPP
 #define SIMGRID_KERNEL_CONTEXT_BOOST_CONTEXT_HPP
 
+/* Boost uses undef preprocessor symbols on FreeBSD, so disable our Werror for this file */
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wundef"
+#endif
+
 #include <boost/version.hpp>
 #if BOOST_VERSION < 106100
 #include <boost/context/fcontext.hpp>
 #include <boost/context/detail/fcontext.hpp>
 #endif
 
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
+
 #include <atomic>
 #include <cstdint>
 #include <functional>
 #include <vector>
 
-#include <simgrid/simix.hpp>
-#include <xbt/parmap.hpp>
-
-#include "src/internal_config.h"
 #include "src/kernel/context/ContextSwapped.hpp"
+#include "src/xbt/parmap.hpp"
 
 namespace simgrid::kernel::context {