Refs #75. Check ffreep macro before the define.
authorZhang Xianyi <xianyi@iscas.ac.cn>
Thu, 31 May 2012 09:17:02 +0000 (17:17 +0800)
committerZhang Xianyi <xianyi@iscas.ac.cn>
Thu, 31 May 2012 09:17:02 +0000 (17:17 +0800)
common_x86.h
common_x86_64.h

index 4c17f3a..4316318 100644 (file)
@@ -360,5 +360,7 @@ REALNAME:
 // ffreep %st(0). 
 // Because Clang didn't support ffreep, we directly use the opcode.
 // Please check out http://www.sandpile.org/x86/opc_fpu.htm 
+#ifndef ffreep
 #define ffreep .byte 0xdf, 0xc0 #
 #endif
+#endif
index e61e37e..7b6d11f 100644 (file)
@@ -451,5 +451,7 @@ REALNAME:
 // ffreep %st(0). 
 // Because Clang didn't support ffreep, we directly use the opcode.
 // Please check out http://www.sandpile.org/x86/opc_fpu.htm 
+#ifndef ffreep
 #define ffreep .byte 0xdf, 0xc0 #
 #endif
+#endif