Skip to content

Commit e12c4e7

Browse files
committed
Remove unused architecture ifdefs in mthdecls.h
1 parent 3fcd8ad commit e12c4e7

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

runtime/include/mthdecls.h

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef struct {
7474
single precision versions of the math.h functions, in which case the
7575
single precision versions should be used: */
7676

77-
#if defined(WIN64) || defined(SOLARIS8664)
77+
#if defined(WIN64)
7878

7979
#define ACOSF acos
8080
#define ASINF asin
@@ -101,8 +101,8 @@ typedef struct {
101101
#define FLOORF floor
102102
#define FMODF fmod
103103
#define HYPOTF hypot
104-
#define COPYSIGNF copysignf
105-
#define COPYSIGN copysign
104+
#define COPYSIGNF _copysignf
105+
#define COPYSIGN _copysign
106106
#define ERFF erf
107107
#define ERFCF erfc
108108
#define GAMMAF tgamma
@@ -132,18 +132,12 @@ typedef struct {
132132
* Also, with MSOT8, hypot is depcrecated, and will not link
133133
* correctly. Need to use _hypot.
134134
*/
135-
#if defined(WIN64)
136135
#define POWF __mth_i_dpowd
137-
#define COPYSIGNF _copysignf
138-
#define COPYSIGN _copysign
139136
#ifdef __PGI_TOOLS9
140137
#define hypot _hypot
141138
#endif
142-
#else
143-
#define POWF pow
144-
#endif
145139

146-
#else
140+
#else /* #if defined (WIN64) */
147141
#define ACOSF acosf
148142
#define ASINF asinf
149143
#define ATANF atanf
@@ -249,17 +243,7 @@ typedef struct {
249243
#define BESSEL_Y1 y1
250244
#define BESSEL_YN yn
251245
#endif
252-
#endif
253-
254-
/*
255-
#if defined(INTERIX86)
256-
extern double HYPOTF();
257-
#endif
258-
*/
259-
260-
#if defined(SOLARIS8664)
261-
extern double hypot(double, double);
262-
#endif
246+
#endif /* #if defined (WIN64) */
263247

264248
/* declarations for math functions */
265249

0 commit comments

Comments
 (0)