From 37edae1c90c01d65e47ff57b3f98d6bedbfc766b Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Thu, 31 May 2012 17:17:02 +0800 Subject: [PATCH] Refs #75. Check ffreep macro before the define. --- common_x86.h | 2 ++ common_x86_64.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common_x86.h b/common_x86.h index 4c17f3a..4316318 100644 --- a/common_x86.h +++ b/common_x86.h @@ -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 diff --git a/common_x86_64.h b/common_x86_64.h index e61e37e..7b6d11f 100644 --- a/common_x86_64.h +++ b/common_x86_64.h @@ -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 -- 2.7.4