preprocessor macros for iOS

This commit is contained in:
Eric Betts committed 2022-01-27 21:27:27 -08:00
1 parent f1501c9698
commit 8b21655458
2 files changed
+18 -1

No files matched your search

+9
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>