Skip to content

Instantly share code, notes, and snippets.

@SaitoAtsushi
Forked from shirok/gist:11fb4dbf5613f8fe061b
Last active November 30, 2015 03:54
Show Gist options
  • Save SaitoAtsushi/c8e22974540ebab2808f to your computer and use it in GitHub Desktop.
Save SaitoAtsushi/c8e22974540ebab2808f to your computer and use it in GitHub Desktop.
diff --git a/src/gauche.h b/src/gauche.h
index 7b12cb1..bb3fd6e 100644
--- a/src/gauche.h
+++ b/src/gauche.h
@@ -74,13 +74,6 @@
# endif
#endif
-/* For Windows platforms, we need some compatibility tricks.
- This defines GAUCHE_WINDOWS preprocessor symbol.
- (This should come before including gc.h) */
-#if defined(__MINGW32__) || defined(MSVC)
-#include <gauche/win-compat.h>
-#endif /* MINGW32 || WINDOWS */
-
#if defined(LIBGAUCHE_BODY)
#if !defined(GC_DLL)
#define GC_DLL /* for gc.h to handle Win32 crazyness */
@@ -103,6 +96,13 @@
SCM_DECL_BEGIN
+/* For Windows platforms, we need some compatibility tricks.
+ This defines GAUCHE_WINDOWS preprocessor symbol.
+ (This should come before including gc.h) */
+#if defined(__MINGW32__) || defined(MSVC)
+#include <gauche/win-compat.h>
+#endif /* MINGW32 || WINDOWS */
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /*HAVE_UNISTD_H*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment