nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37bb3f5
)
pthreads: fix thread/gc support on iOS
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 14 Jan 2018 16:42:06 +0000
(11:42 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 17 Jan 2018 20:30:13 +0000
(15:30 -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
3a6dc7b
..
91ebb94
100644
(file)
--- a/
lib/pthreads/pthreads.nit
+++ b/
lib/pthreads/pthreads.nit
@@
-38,17
+38,8
@@
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".
- #ifdef __APPLE__
- #include "TargetConditionals.h"
- #if TARGET_OS_IPHONE == 1
- #define IOS
- #endif
- #endif
-
- #if !defined(IOS)
- #define GC_THREADS
- #include <gc.h>
- #endif
+ #define GC_THREADS
+ #include <gc.h>
`}
redef class Sys