Skip to content

Commit 060939f

Browse files
committed
Fix macro issue on Darwin platform
1 parent 8547bda commit 060939f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

AG/Sources/Headers/AGBase.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343

4444
#include <CoreFoundation/CoreFoundation.h>
4545
#include <TargetConditionals.h>
46+
#ifndef TARGET_OS_DARWIN
47+
#define TARGET_OS_DARWIN TARGET_OS_MAC
48+
#endif
4649
#define AG_OPTIONS CF_OPTIONS
4750
#define AG_EXTERN_C_BEGIN CF_EXTERN_C_BEGIN
4851
#define AG_EXTERN_C_END CF_EXTERN_C_END

Sources/_OpenGraph/include/OGBase.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
#include <CoreFoundation/CoreFoundation.h>
4545
#ifdef __APPLE__
4646
#include <TargetConditionals.h>
47+
#ifndef TARGET_OS_DARWIN
48+
#define TARGET_OS_DARWIN TARGET_OS_MAC
49+
#endif
4750
#else
4851
#include <CoreFoundation/TargetConditionals.h>
4952
#endif

0 commit comments

Comments
 (0)