Skip to content

Commit 2289ae1

Browse files
MTR_EXTERN should not imply MTR_EXPORT.
Most things using MTR_EXTERN had availability annotations anyway, which imply MTR_EXPORT.
1 parent cdfca0f commit 2289ae1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/darwin/Framework/CHIP/MTRDefines.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
#define MTR_EXPORT __attribute__((visibility("default")))
5252

5353
#ifdef __cplusplus
54-
#define MTR_EXTERN extern "C" MTR_EXPORT
54+
#define MTR_EXTERN extern "C"
5555
#else
56-
#define MTR_EXTERN extern MTR_EXPORT
56+
#define MTR_EXTERN extern
5757
#endif
5858

5959
#if __has_attribute(__swift_attr__)

src/darwin/Framework/CHIP/MTRDeviceControllerLocalTestStorage.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
NS_ASSUME_NONNULL_BEGIN
2424

25-
MTR_EXTERN @interface MTRDeviceControllerLocalTestStorage : NSObject<MTRDeviceControllerStorageDelegate>
25+
MTR_EXTERN MTR_EXPORT @interface MTRDeviceControllerLocalTestStorage : NSObject<MTRDeviceControllerStorageDelegate>
2626

2727
// Setting this variable only affects subsequent MTRDeviceController initializations
2828
@property (class, nonatomic, assign) BOOL localTestStorageEnabled;

0 commit comments

Comments
 (0)