diff --git a/include/mapbox/geometry/wagyu/ring.hpp b/include/mapbox/geometry/wagyu/ring.hpp index eb4ade7..99e3dd6 100644 --- a/include/mapbox/geometry/wagyu/ring.hpp +++ b/include/mapbox/geometry/wagyu/ring.hpp @@ -11,7 +11,7 @@ #include #include -#ifdef DEBUG +#if defined(DEBUG) && __has_include() #include #include #include diff --git a/include/mapbox/geometry/wagyu/ring_util.hpp b/include/mapbox/geometry/wagyu/ring_util.hpp index 64d3a13..aed5c40 100644 --- a/include/mapbox/geometry/wagyu/ring_util.hpp +++ b/include/mapbox/geometry/wagyu/ring_util.hpp @@ -1,6 +1,6 @@ #pragma once -#ifdef DEBUG +#if defined(DEBUG) && __has_include() #include // Example debug print for backtrace - only works on IOS #include