From 7065fdf6c5de7886e5789c42d0b089eacaac600a Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Sat, 8 Feb 2014 21:35:14 -0800 Subject: [PATCH] Remove {cdefs,types}-compat.h from openlibm.h --- src/openlibm.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/openlibm.h b/src/openlibm.h index 5e6ba5d..5a37093 100644 --- a/src/openlibm.h +++ b/src/openlibm.h @@ -17,8 +17,11 @@ #ifndef _MATH_H_ #define _MATH_H_ -#include "cdefs-compat.h" -#include "types-compat.h" +#if (defined(_WIN32) || defined (_MSC_VER)) && !defined(__WIN32__) + #define __WIN32__ +#endif + +#define __pure2 /* * ANSI/POSIX @@ -172,7 +175,10 @@ extern int signgam; * effect of raising floating-point exceptions, so they are not declared * as __pure2. In C99, FENV_ACCESS affects the purity of these functions. */ -__BEGIN_DECLS + +#if defined(__cplusplus) +extern "C" { +#endif /* * ANSI/POSIX */ @@ -490,5 +496,7 @@ long double tgammal(long double); long double truncl(long double); #endif /* __ISO_C_VISIBLE >= 1999 */ -__END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !_MATH_H_ */