Skip to content

Instantly share code, notes, and snippets.

@nkoguro
Created September 21, 2013 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkoguro/6650319 to your computer and use it in GitHub Desktop.
Save nkoguro/6650319 to your computer and use it in GitHub Desktop.
Fix a compile error in Gauche HEAD on arm architecture.
diff --git a/src/gauche/float.h b/src/gauche/float.h
index 17daded..c23314d 100644
--- a/src/gauche/float.h
+++ b/src/gauche/float.h
@@ -117,7 +117,7 @@ extern unsigned int __cdecl _controlfp(unsigned int, unsigned int);
#define SCM_FP_ENSURE_DOUBLE_PRECISION_END() \
_controlfp(old_fpc_val__, _MCW_PC); }
-#elif defined(_FPU_GETCW) /* linux */
+#elif defined(_FPU_GETCW) && defined(_FPU_EXTENDED) /* linux x86 */
#define SCM_FP_ENSURE_DOUBLE_PRECISION_BEGIN() \
{ fpu_control_t old_fpc_val__, new_fpc_val__; \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment