diff --git a/amd64/bsd_ieeefp.h b/amd64/bsd_ieeefp.h index 7fe3b15..7d6749e 100644 --- a/amd64/bsd_ieeefp.h +++ b/amd64/bsd_ieeefp.h @@ -41,9 +41,8 @@ #ifndef _MACHINE_IEEEFP_H_ #define _MACHINE_IEEEFP_H_ -#warning test -#ifndef _SYS_CDEFS_H_ +#if !defined(_SYS_CDEFS_H_) && !defined(_CDEFS_H_) #error this file needs sys/cdefs.h as a prerequisite #endif @@ -125,8 +124,6 @@ typedef enum { #if (defined(__GNUCLIKE_ASM) && defined(__CC_SUPPORTS___INLINE__)) || defined(__WIN32__) \ && !defined(__cplusplus) -#warning test2 - #define __fldenv(addr) __asm __volatile("fldenv %0" : : "m" (*(addr))) #define __fnstenv(addr) __asm __volatile("fnstenv %0" : "=m" (*(addr))) #define __fldcw(addr) __asm __volatile("fldcw %0" : : "m" (*(addr))) @@ -280,4 +277,4 @@ __END_DECLS #endif /* !__IEEEFP_NOINLINES__ && !__cplusplus && __GNUCLIKE_ASM && __CC_SUPPORTS___INLINE__ */ -#endif /* !_MACHINE_IEEEFP_H_ */ \ No newline at end of file +#endif /* !_MACHINE_IEEEFP_H_ */ diff --git a/ld80/s_exp2l.c b/ld80/s_exp2l.c index 50cd89a..0e64d3b 100644 --- a/ld80/s_exp2l.c +++ b/ld80/s_exp2l.c @@ -30,11 +30,7 @@ #include #include -#ifdef __WIN32__ #include "amd64/bsd_ieeefp.h" -#else -#include -#endif #include "fpmath.h" #include "openlibm.h"