Assume OSX if we have defined __APPLE__ (#46)

This commit is contained in:
Joshua Scoggins 2016-04-23 17:04:45 -07:00 committed by Ryan C. Gordon
parent 65d8d44f0e
commit 056d77f479

View File

@ -61,17 +61,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define PLATFORM_LINUX 1
#endif
#elif (defined __APPLE__)
#include "TargetConditionals.h"
#if TARGET_OS_MAC
#define PLATFORM_MACOSX 1
#else
#error "Unsupported apple platform"
#endif
#else
#warning "UNKNOWN PLATFORM IDENTIFIED!!!!"
#define PLATFORM_UNKNOWN 1
#warning "USING PORTABLE C!!!"
#define USE_PORTABLE_C
#define USE_PORTABLE_C
#endif
#if PLATFORM_LINUX || PLATFORM_MACOSX