~ chicken-core (chicken-5) f459a334785310f8c991f0c16f46a50fea73900d


commit f459a334785310f8c991f0c16f46a50fea73900d
Author:     Peter Bex <peter@more-magic.net>
AuthorDate: Sat Jun 13 16:06:19 2015 +0200
Commit:     Mario Domenech Goulart <mario.goulart@gmail.com>
CommitDate: Sat Jun 13 11:21:00 2015 -0300

    Move Haiku and MacOS-specific includes into runtime.c; they're not used elsewhere
    
    Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>

diff --git a/chicken.h b/chicken.h
index aed9480b..03d1839b 100644
--- a/chicken.h
+++ b/chicken.h
@@ -3625,16 +3625,6 @@ C_inline char *C_realpath(const char *path, char *resolved)
 }
 #endif
 
-/* For image_info retrieval */
-#if defined(__HAIKU__)
-# include <kernel/image.h>
-#endif
-
-/* For _NSGetExecutablePath */
-#if defined(C_MACOSX)
-# include <mach-o/dyld.h>
-#endif
-
 C_END_C_DECLS
 
 #endif /* ___CHICKEN */
diff --git a/runtime.c b/runtime.c
index 63df536a..63938969 100644
--- a/runtime.c
+++ b/runtime.c
@@ -106,6 +106,16 @@ static C_TLS int timezone;
 # include <windows.h>
 #endif
 
+/* For image_info retrieval */
+#if defined(__HAIKU__)
+# include <kernel/image.h>
+#endif
+
+/* For _NSGetExecutablePath */
+#if defined(C_MACOSX)
+# include <mach-o/dyld.h>
+#endif
+
 #ifdef HAVE_CONFIG_H
 # ifdef PACKAGE
 #  undef PACKAGE
Trap