Skip to content

Commit 8029808

Browse files
committed
Fix OG_COUNTED_BY compacibility issue on Linux
1 parent c5bf7d7 commit 8029808

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/OpenGraph_SPI/include/OGBase.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
#define OG_CONSTEXPR
4444
#endif
4545

46+
#if __has_attribute(__counted_by__)
47+
#define __counted_by(N) __attribute__((__counted_by__(N)))
48+
#else
49+
#define __counted_by(N)
50+
#endif
51+
4652
#define OG_COUNTED_BY(N) __counted_by(N)
4753

4854
#include "OGSwiftSupport.h"

0 commit comments

Comments
 (0)