Created
September 21, 2013 12:48
-
-
Save nkoguro/6650319 to your computer and use it in GitHub Desktop.
Fix a compile error in Gauche HEAD on arm architecture.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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