From: Alexis Laferrière Date: Sat, 22 Nov 2014 02:37:56 +0000 (-0500) Subject: pthreads: do not include `gc.h` on Android X-Git-Tag: v0.6.11~21^2 X-Git-Url: http://nitlanguage.org pthreads: do not include `gc.h` on Android Signed-off-by: Alexis Laferrière --- diff --git a/lib/pthreads/extra.nit b/lib/pthreads/extra.nit index b5efb1e..416b174 100644 --- a/lib/pthreads/extra.nit +++ b/lib/pthreads/extra.nit @@ -24,9 +24,10 @@ intrude import pthreads in "C" `{ // TODO protect with: #ifdef WITH_LIBGC + #ifndef ANDROID #define GC_THREADS #include - //#endif + #endif `} redef extern class NativePthread diff --git a/lib/pthreads/pthreads.nit b/lib/pthreads/pthreads.nit index 63db6bc..94cf078 100644 --- a/lib/pthreads/pthreads.nit +++ b/lib/pthreads/pthreads.nit @@ -34,9 +34,10 @@ in "C" `{ // TODO protect with: #ifdef WITH_LIBGC // We might have to add the next line to gc_chooser.c too, especially // if we get an error like "thread not registered with GC". + #ifndef ANDROID #define GC_THREADS #include - //#endif + #endif `} redef class Sys