Skip to content

Commit e9d02ee

Browse files
committed
Fix compilation by including cdefs-compat.h in math_private.h
Also fix redefinition of __pure2
1 parent 79190aa commit e9d02ee

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/math_private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef _MATH_PRIVATE_H_
1818
#define _MATH_PRIVATE_H_
1919

20+
#include "cdefs-compat.h"
2021
#include "types-compat.h"
2122
#include "fpmath.h"
2223
#include <complex.h>

src/openlibm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
#define LONG_DOUBLE
2828
#endif
2929

30+
#ifndef __pure2
3031
#define __pure2
32+
#endif
3133

3234
/*
3335
* ANSI/POSIX

0 commit comments

Comments
 (0)