summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2018-01-23 05:38:02 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-01-24 17:05:17 +0300
commite9f26e6de5a1a4b4ded6d55f1a09838da5056c07 (patch)
tree20abe59a860d669e01d3057c5cc9e38a01e2fb23 /tests
parent65fe9858bf528ce053c729758bfb489a44b5ec75 (diff)
downloadbdwgc-e9f26e6de5a1a4b4ded6d55f1a09838da5056c07.tar.gz
Use HOST_ANDROID define instead of PLATFORM_ANDROID
(a cherry-pick of commit 5d819c8 from 'mono_libgc') * doc/README.macros (PLATFORM_ANDROID): Rename to HOST_ANDROID. * dyn_load.c: Rename PLATFORM_ANDROID to HOST_ANDROID. * include/gc.h: Likewise. * include/gc_config_macros.h: Likewise. * include/private/gcconfig.h: Likewise. * include/private/thread_local_alloc.h: Likewise. * os_dep.c: Likewise. * pthread_support.c: Likewise. * tests/initsecondarythread.c: Likewise. * tests/test.c: Likewise. * tools/threadlibs.c: Likewise.
Diffstat (limited to 'tests')
-rw-r--r--tests/initsecondarythread.c2
-rw-r--r--tests/test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/initsecondarythread.c b/tests/initsecondarythread.c
index 9893fb5c..96a21e2e 100644
--- a/tests/initsecondarythread.c
+++ b/tests/initsecondarythread.c
@@ -72,7 +72,7 @@ int main(void)
|| defined(CYGWIN32) || defined(GC_OPENBSD_UTHREADS) \
|| (defined(DARWIN) && !defined(NO_PTHREAD_GET_STACKADDR_NP)) \
|| ((defined(FREEBSD) || defined(LINUX) || defined(NETBSD) \
- || defined(PLATFORM_ANDROID)) && !defined(NO_PTHREAD_GETATTR_NP) \
+ || defined(HOST_ANDROID)) && !defined(NO_PTHREAD_GETATTR_NP) \
&& !defined(NO_PTHREAD_ATTR_GET_NP)) \
|| (defined(GC_SOLARIS_THREADS) && !defined(_STRICT_STDC)) \
|| (!defined(STACKBOTTOM) && (defined(HEURISTIC1) \
diff --git a/tests/test.c b/tests/test.c
index c8d62041..5ba97c56 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -148,7 +148,7 @@
/* Call GC_INIT only on platforms on which we think we really need it, */
/* so that we can test automatic initialization on the rest. */
#if defined(TEST_EXPLICIT_GC_INIT) || defined(AIX) || defined(CYGWIN32) \
- || defined(DARWIN) || defined(PLATFORM_ANDROID) \
+ || defined(DARWIN) || defined(HOST_ANDROID) \
|| (defined(MSWINCE) && !defined(GC_WINMAIN_REDIRECT))
# define GC_OPT_INIT GC_INIT()
#else