pthreads: do not include `gc.h` on Android
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 22 Nov 2014 02:37:56 +0000 (21:37 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 22 Nov 2014 02:47:40 +0000 (21:47 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/pthreads/extra.nit
lib/pthreads/pthreads.nit

index b5efb1e..416b174 100644 (file)
@@ -24,9 +24,10 @@ intrude import pthreads
 
 in "C" `{
        // TODO protect with: #ifdef WITH_LIBGC
+       #ifndef ANDROID
                #define GC_THREADS
                #include <gc.h>
-       //#endif
+       #endif
 `}
 
 redef extern class NativePthread
index 63db6bc..94cf078 100644 (file)
@@ -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 <gc.h>
-       //#endif
+       #endif
 `}
 
 redef class Sys