From e9d02ee729d9ba1b92fedcadb34eb758c58e8ae1 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 5 Jun 2014 22:08:41 -0700 Subject: [PATCH] Fix compilation by including cdefs-compat.h in math_private.h Also fix redefinition of __pure2 --- src/math_private.h | 1 + src/openlibm.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/math_private.h b/src/math_private.h index 5903e13..e728ba8 100644 --- a/src/math_private.h +++ b/src/math_private.h @@ -17,6 +17,7 @@ #ifndef _MATH_PRIVATE_H_ #define _MATH_PRIVATE_H_ +#include "cdefs-compat.h" #include "types-compat.h" #include "fpmath.h" #include diff --git a/src/openlibm.h b/src/openlibm.h index 153f9ae..174ac4a 100644 --- a/src/openlibm.h +++ b/src/openlibm.h @@ -27,7 +27,9 @@ #define LONG_DOUBLE #endif +#ifndef __pure2 #define __pure2 +#endif /* * ANSI/POSIX