diff options
author | Zoltan Varga <vargaz@gmail.com> | 2018-01-23 05:38:02 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-01-24 17:05:17 +0300 |
commit | e9f26e6de5a1a4b4ded6d55f1a09838da5056c07 (patch) | |
tree | 20abe59a860d669e01d3057c5cc9e38a01e2fb23 /pthread_support.c | |
parent | 65fe9858bf528ce053c729758bfb489a44b5ec75 (diff) | |
download | bdwgc-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 'pthread_support.c')
-rw-r--r-- | pthread_support.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread_support.c b/pthread_support.c index f22570d1..98135537 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -893,7 +893,7 @@ STATIC void GC_remove_all_threads_but_me(void) #elif defined(GC_OSF1_THREADS) || defined(GC_AIX_THREADS) \ || defined(GC_SOLARIS_THREADS) || defined(HURD) \ - || defined(PLATFORM_ANDROID) || defined(NACL) + || defined(HOST_ANDROID) || defined(NACL) GC_INLINE int GC_get_nprocs(void) { int nprocs = (int)sysconf(_SC_NPROCESSORS_ONLN); @@ -907,7 +907,7 @@ STATIC void GC_remove_all_threads_but_me(void) return nprocs > 0 ? nprocs : 1; /* ignore error silently */ } -#elif defined(GC_LINUX_THREADS) /* && !PLATFORM_ANDROID && !NACL */ +#elif defined(GC_LINUX_THREADS) /* && !HOST_ANDROID && !NACL */ /* Return the number of processors. */ STATIC int GC_get_nprocs(void) { |