preprocessor macros for iOS

This commit is contained in:
Eric Betts 2022-01-27 16:46:49 -08:00
commit 8b21655458
2 changed files with 18 additions and 1 deletions

View file

@ -8,6 +8,15 @@
#ifndef lconfig_h
#define lconfig_h
#if defined(__APPLE__)
#include "TargetConditionals.h"
#if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV
#define system(s) ((s)==NULL ? 0 : -1)
#endif // end iOS
#elif defined(__ANDROID__)
#define system(s) ((s)==NULL ? 0 : -1)
#endif
#include <limits.h>
#include <stddef.h>