Fix the check in bf9c7dcc5ec5fddb673d97079d5443b919785b33.
authorAlex Rønne Petersen <alex@alexrp.com>
Wed, 22 May 2013 04:49:03 +0000 (07:49 +0300)
committerAlex Rønne Petersen <alex@alexrp.com>
Wed, 22 May 2013 04:49:03 +0000 (07:49 +0300)
The C preprocessor sucks.

mono/mini/mini-arm.c

index ab739af4d631cb0bfcf290c6b1500a459e67821d..572351d0e352538942b1a5c55e135541f48cf863 100644 (file)
@@ -25,8 +25,8 @@
 #include "mono/arch/arm/arm-vfp-codegen.h"
 
 /* Sanity check: This makes no sense */
-#ifdef ARM_FPU_NONE && (ARM_FPU_VFP || ARM_FPU_VFP_HARD)
-#error "ARM_FPU_NONE and is defined while ARM_FPU_VFP/ARM_FPU_VFP_HARD is defined"
+#if defined(ARM_FPU_NONE) && (defined(ARM_FPU_VFP) || defined(ARM_FPU_VFP_HARD))
+#error "ARM_FPU_NONE is defined while one of ARM_FPU_VFP/ARM_FPU_VFP_HARD is defined"
 #endif
 
 #if defined(__ARM_EABI__) && defined(__linux__) && !defined(PLATFORM_ANDROID) && !defined(__native_client__)