Skip to content

Commit 1e3f511

Browse files
bzbarsky-applepull[bot]
authored andcommitted
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.
1 parent 9177a18 commit 1e3f511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/darwin/Framework/CHIP/MTRDefines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#define MTR_NEWLY_AVAILABLE
5454
#endif
5555

56-
#if MTR_ENABLE_PROVISIONAL
56+
#if defined(MTR_ENABLE_PROVISIONAL) && MTR_ENABLE_PROVISIONAL
5757
#define MTR_PROVISIONALLY_AVAILABLE MTR_NEWLY_AVAILABLE
5858
#else
5959
#define MTR_PROVISIONALLY_AVAILABLE NS_UNAVAILABLE MTR_HIDDEN

0 commit comments

Comments
 (0)