File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ install: all
5151 cp -a libopenlibm.$(SHLIB_EXT ) * $(DESTDIR )$(shlibdir ) /
5252 cp -a libopenlibm.a $(DESTDIR )$(libdir ) /
5353 cp -a src/openlibm.h $(DESTDIR )$(includedir ) /
54- cp -a include/* .h $(DESTDIR )$(includedir ) /openlibm/
5554ifneq ($(wildcard $(ARCH ) /bsd_asm.h) ,)
5655 cp -a $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/
5756endif
Original file line number Diff line number Diff line change 1818#define _MATH_H_
1919
2020#include <complex.h>
21- #include "cdefs-compat.h"
22- #include "types-compat.h"
21+
22+ #if (defined(_WIN32 ) || defined (_MSC_VER )) && !defined(__WIN32__ )
23+ #define __WIN32__
24+ #endif
25+
26+ #define __pure2
2327
2428/*
2529 * ANSI/POSIX
@@ -253,7 +257,10 @@ cpackl(long double x, long double y)
253257 * effect of raising floating-point exceptions, so they are not declared
254258 * as __pure2. In C99, FENV_ACCESS affects the purity of these functions.
255259 */
256- __BEGIN_DECLS
260+
261+ #if defined(__cplusplus )
262+ extern "C" {
263+ #endif
257264/*
258265 * ANSI/POSIX
259266 */
@@ -571,5 +578,7 @@ long double tgammal(long double);
571578long double truncl (long double );
572579
573580#endif /* __ISO_C_VISIBLE >= 1999 */
574- __END_DECLS
581+ #if defined(__cplusplus )
582+ }
583+ #endif
575584#endif /* !_MATH_H_ */
You can’t perform that action at this time.
0 commit comments