Fix that C API should use FOUNDATION_EXPORT for C++

This commit is contained in:
DreamPiggy 2024-01-10 15:26:13 +08:00
parent a6cce6677b
commit 64d44f355b
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ else OSSpinLockUnlock(&lock##_deprecated);
#define SD_SEL_SPI(name) NSSelectorFromString([NSString stringWithFormat:@"_%@", SD_NSSTRING(name)])
#endif
extern os_log_t sd_getDefaultLog(void);
FOUNDATION_EXPORT os_log_t sd_getDefaultLog(void);
#ifndef SD_LOG
#define SD_LOG(_log, ...) if (@available(iOS 10.0, tvOS 10.0, macOS 10.12, watchOS 3.0, *)) os_log(sd_getDefaultLog(), _log, ##__VA_ARGS__); \