summary refs log tree commit diff stats
path: root/lib/nimbase.h
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-04-02 23:44:50 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-04-02 23:44:50 +0200
commit57b7c45128bc4257157ce905537db2f3fb970b7b (patch)
tree98db34a7b987dd7135792615a58e75ba58e15e38 /lib/nimbase.h
parentc785066ee343268c5ef9c19c4d334a0f1e8e8c48 (diff)
parentcab2ce7e8770f35561f002bab601358a09535ef2 (diff)
downloadNim-57b7c45128bc4257157ce905537db2f3fb970b7b.tar.gz
Merge branch 'devel' into araq
Diffstat (limited to 'lib/nimbase.h')
-rw-r--r--lib/nimbase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index a535d0da9..714623d4e 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -498,6 +498,11 @@ typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) == siz
 #  include <sys/types.h>
 #endif
 
+#if defined(__GENODE__)
+#include <libc/component.h>
+extern Libc::Env *genodeEnv;
+#endif
+
 /* Compile with -d:checkAbi and a sufficiently C11:ish compiler to enable */
 #define NIM_CHECK_SIZE(typ, sz) \
   _Static_assert(sizeof(typ) == sz, "Nim & C disagree on type size")