File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ extern int errno;
3535
3636#include <math.h>
3737
38+ #ifndef __STDC__
39+ extern double fmod ();
40+ #endif
41+
3842#ifdef HUGE_VAL
3943#define CHECK (x ) if (errno != 0) ; \
4044 else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
@@ -109,10 +113,7 @@ FUNC1(math_cosh, cosh)
109113FUNC1 (math_exp , exp )
110114FUNC1 (math_fabs , fabs )
111115FUNC1 (math_floor , floor )
112- #ifndef AMOEBA
113- /* XXX This one is not in the Amoeba library yet, so what the heck... */
114116FUNC2 (math_fmod , fmod )
115- #endif
116117FUNC1 (math_log , log )
117118FUNC1 (math_log10 , log10 )
118119#ifdef MPW_3_1 /* This hack is needed for MPW 3.1 but not for 3.2 ... */
@@ -212,9 +213,7 @@ static struct methodlist math_methods[] = {
212213 {"exp" , math_exp },
213214 {"fabs" , math_fabs },
214215 {"floor" , math_floor },
215- #ifndef AMOEBA
216216 {"fmod" , math_fmod },
217- #endif
218217 {"frexp" , math_frexp },
219218 {"ldexp" , math_ldexp },
220219 {"log" , math_log },
You can’t perform that action at this time.
0 commit comments