# define DATAEND (__end__ != 0 ? (ptr_t)__end__ : (ptr_t)_end)
#endif
-#if defined(PLATFORM_ANDROID) && !defined(THREADS) \
- && !defined(USE_GET_STACKBASE_FOR_MAIN)
- /* Always use pthread_attr_getstack on Android ("-lpthread" option is */
- /* not needed to be specified manually) since GC_linux_main_stack_base */
- /* causes app crash if invoked inside Dalvik VM. */
-# define USE_GET_STACKBASE_FOR_MAIN
-#endif
-
#if (defined(SVR4) || defined(PLATFORM_ANDROID)) && !defined(GETPAGESIZE)
# include <unistd.h>
# define GETPAGESIZE() (unsigned)sysconf(_SC_PAGESIZE)
# define MIN_STACK_SIZE (8 * HBLKSIZE * sizeof(word))
#endif
+#if defined(PLATFORM_ANDROID) && !defined(THREADS) \
+ && !defined(USE_GET_STACKBASE_FOR_MAIN)
+ /* Always use pthread_attr_getstack on Android ("-lpthread" option is */
+ /* not needed to be specified manually) since GC_linux_main_stack_base */
+ /* causes app crash if invoked inside Dalvik VM. */
+# define USE_GET_STACKBASE_FOR_MAIN
+#endif
+
#if defined(UNIX_LIKE) && defined(THREADS) && !defined(NO_CANCEL_SAFE) \
&& !defined(PLATFORM_ANDROID)
/* Make the code cancellation-safe. This basically means that we */