Work around macos broken TARGET_OS_EMBEDDED

Their headers test TARGET_OS_EMBEDDED without
testing if it's defined which breaks Wundef.

Might be fixed in more recent macos, but it broke the github action.
This commit is contained in:
Matt Johnston 2022-11-10 10:45:32 +08:00
parent 0058cc69c8
commit dacc10a8cf

View File

@ -373,5 +373,14 @@
#define DROPBEAR_MULTI 0
#endif
/* MacOSX10.15.sdk headers don't work with -Wundef */
#ifdef __APPLE__
#ifndef TARGET_OS_EMBEDDED
#define TARGET_OS_EMBEDDED 0
#endif
#endif /* __APPLE__ */
/* no include guard for this file */