File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717#ifndef _MATH_H_
1818#define _MATH_H_
1919
20- #include "cdefs-compat.h"
21- #include "types-compat.h"
20+ #if (defined(_WIN32 ) || defined (_MSC_VER )) && !defined(__WIN32__ )
21+ #define __WIN32__
22+ #endif
23+
24+ #define __pure2
2225
2326/*
2427 * ANSI/POSIX
@@ -172,7 +175,10 @@ extern int signgam;
172175 * effect of raising floating-point exceptions, so they are not declared
173176 * as __pure2. In C99, FENV_ACCESS affects the purity of these functions.
174177 */
175- __BEGIN_DECLS
178+
179+ #if defined(__cplusplus )
180+ extern "C" {
181+ #endif
176182/*
177183 * ANSI/POSIX
178184 */
@@ -490,5 +496,7 @@ long double tgammal(long double);
490496long double truncl (long double );
491497
492498#endif /* __ISO_C_VISIBLE >= 1999 */
493- __END_DECLS
499+ #if defined(__cplusplus )
500+ }
501+ #endif
494502#endif /* !_MATH_H_ */
You can’t perform that action at this time.
0 commit comments