A few more ANDROID for __ANDROID__ replacements
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/test/controllermap.c b/test/controllermap.c
index d93f957..a4f2517 100644
--- a/test/controllermap.c
+++ b/test/controllermap.c
@@ -376,7 +376,7 @@ main(int argc, char *argv[])
}
}
-#ifdef ANDROID
+#ifdef __ANDROID__
if (SDL_NumJoysticks() > 0) {
#else
if (argv[1]) {
@@ -385,7 +385,7 @@ main(int argc, char *argv[])
SDL_bool keepGoing = SDL_TRUE;
SDL_Event event;
int device;
-#ifdef ANDROID
+#ifdef __ANDROID__
device = 0;
#else
device = atoi(argv[1]);
diff --git a/test/testjoystick.c b/test/testjoystick.c
index 3e90e98..2dc965d 100644
--- a/test/testjoystick.c
+++ b/test/testjoystick.c
@@ -243,7 +243,7 @@ main(int argc, char *argv[])
}
}
-#ifdef ANDROID
+#ifdef __ANDROID__
if (SDL_NumJoysticks() > 0) {
#else
if (argv[1]) {
@@ -252,7 +252,7 @@ main(int argc, char *argv[])
SDL_bool keepGoing = SDL_TRUE;
SDL_Event event;
int device;
-#ifdef ANDROID
+#ifdef __ANDROID__
device = 0;
#else
device = atoi(argv[1]);