소스 검색

Fix compilation by including cdefs-compat.h in math_private.h

Also fix redefinition of __pure2
Elliot Saba 10 년 전
부모
커밋
e9d02ee729
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/math_private.h
  2. 2 0
      src/openlibm.h

+ 1 - 0
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 <complex.h>

+ 2 - 0
src/openlibm.h

@@ -27,7 +27,9 @@
 #define LONG_DOUBLE
 #endif
 
+#ifndef __pure2
 #define __pure2
+#endif
 
 /*
  * ANSI/POSIX