nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1342948
)
lib/pthreads: do not include libgc on iOS
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 15 Nov 2015 16:10:55 +0000
(11:10 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 11 Feb 2016 18:08:30 +0000
(13:08 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/pthreads/pthreads.nit
patch
|
blob
|
history
diff --git
a/lib/pthreads/pthreads.nit
b/lib/pthreads/pthreads.nit
index
bbff9fc
..
a1c43a2
100644
(file)
--- a/
lib/pthreads/pthreads.nit
+++ b/
lib/pthreads/pthreads.nit
@@
-36,7
+36,14
@@
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
+ #ifdef __APPLE__
+ #include "TargetConditionals.h"
+ #if TARGET_OS_IPHONE == 1
+ #define IOS
+ #endif
+ #endif
+
+ #if !defined(__ANDROID__) && !defined(IOS)
#define GC_THREADS
#include <gc.h>
#endif