From 4a2d6e9fbfd2ffa3c0c073a50aea5dadae314177 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 1 Aug 2023 09:44:01 -0400 Subject: [PATCH] Fix Matter.framework compilation when -Wundef is enabled. (#28424) Apparently we have some framework consumers that set -Wundef, so fail when MTR_ENABLE_PROVISIONAL is not defined. --- src/darwin/Framework/CHIP/MTRDefines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIP/MTRDefines.h b/src/darwin/Framework/CHIP/MTRDefines.h index 323066b4b47fe1..dab6250019e325 100644 --- a/src/darwin/Framework/CHIP/MTRDefines.h +++ b/src/darwin/Framework/CHIP/MTRDefines.h @@ -53,7 +53,7 @@ #define MTR_NEWLY_AVAILABLE #endif -#if MTR_ENABLE_PROVISIONAL +#if defined(MTR_ENABLE_PROVISIONAL) && MTR_ENABLE_PROVISIONAL #define MTR_PROVISIONALLY_AVAILABLE MTR_NEWLY_AVAILABLE #else #define MTR_PROVISIONALLY_AVAILABLE NS_UNAVAILABLE MTR_HIDDEN