From 6bf7528b171e1edfff5bd78020a15ce742594207 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20R=C3=B6hling?= Date: Mon, 7 Feb 2022 10:12:08 +0100 Subject: [PATCH] Define M_PIf only if it is not already defined in math.h Gbp-Pq: Name 0013-Define-M_PIf-only-if-it-is-not-already-defined-in-ma.patch --- libs/image/src/ImageSampler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/image/src/ImageSampler.cpp b/libs/image/src/ImageSampler.cpp index 00385e9..53c68e8 100644 --- a/libs/image/src/ImageSampler.cpp +++ b/libs/image/src/ImageSampler.cpp @@ -38,7 +38,9 @@ struct FilterFunction { bool rejectExternalSamples = true; }; +#ifndef M_PIf constexpr float M_PIf = float(filament::math::F_PI); +#endif const FilterFunction Box { .fn = [](float t) { return t <= 0.5f ? 1.0f : 0.0f; }, -- 2.30.2