Simplify the macros used for distinguishing between OS X and iOS.

git-svn-id: https://svn.eduke32.com/eduke32@4942 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-01-25 12:16:10 +00:00
parent 36291f2e30
commit 6048f9d766
3 changed files with 9 additions and 8 deletions

View file

@ -80,17 +80,18 @@
#ifdef __APPLE__
# include <TargetConditionals.h>
# if !TARGET_OS_IPHONE
# if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
# define EDUKE32_IOS
# else
# define EDUKE32_OSX
# if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
# include <CoreFoundation/CoreFoundation.h>
# endif
# include <CoreServices/CoreServices.h>
# else
# define EDUKE32_TOUCH_DEVICES
# endif
#endif
#ifdef __ANDROID__
#if defined __ANDROID__ || defined EDUKE32_IOS
# define EDUKE32_TOUCH_DEVICES
#endif

View file

@ -161,7 +161,7 @@ int32_t wm_msgbox(const char *name, const char *fmt, ...)
vsnprintf(buf,sizeof(buf),fmt,va);
va_end(va);
#if defined(__APPLE__) && !TARGET_OS_IPHONE
#if defined EDUKE32_OSX
return osx_msgbox(name, buf);
#elif defined HAVE_GTK2
if (gtkbuild_msgbox(name, buf) >= 0) return 1;
@ -206,7 +206,7 @@ int32_t wm_ynbox(const char *name, const char *fmt, ...)
vsprintf(buf,fmt,va);
va_end(va);
#if defined __APPLE__ && !TARGET_OS_IPHONE
#if defined EDUKE32_OSX
return osx_ynbox(name, buf);
#elif defined HAVE_GTK2
{

View file

@ -1867,7 +1867,7 @@ static void M_PreMenuDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin)
"to upgrade to the full registered\n"
"version of Duke Nukem 3D.");
#else
# if defined __APPLE__ && TARGET_OS_IPHONE
# if defined EDUKE32_IOS
mgametextcenter(origin.x, origin.y + (121<<16), "Please visit the App Store\n"
"to upgrade to the full registered\n"
"version of Duke Nukem 3D.");
@ -2022,7 +2022,7 @@ static void M_PreMenuDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin)
creditsminitext(origin.x + (160<<16), origin.y + ((90+7+10-l)<<16), "Evan \"Hendricks266\" Ramos", 8);
#ifdef DROIDMENU
# if defined __APPLE__ && TARGET_OS_IPHONE
# if defined EDUKE32_IOS
mgametextcenter(origin.x, origin.y + ((110+7-l)<<16), "iOS support programming");
# else
mgametextcenter(origin.x, origin.y + ((110+7-l)<<16), "Android support programming");