Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 2433:6cbd2830b5a2 legacy-trunk
for MPW __SC__ compiler
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 27 Feb 1995 10:13:37 +0000 |
| parents | 43f9e7549c70 |
| children | 67d347c32fff |
line wrap: on
line diff
--- a/Objects/floatobject.c Mon Feb 27 10:13:23 1995 +0000 +++ b/Objects/floatobject.c Mon Feb 27 10:13:37 1995 +0000 @@ -32,7 +32,7 @@ #include <errno.h> #include <ctype.h> -#include <math.h> +#include "mymath.h" #ifdef i860 /* Cray APP has bogus definition of HUGE_VAL in <math.h> */ @@ -71,14 +71,18 @@ #endif #endif -#ifndef __STDC__ +#if !defined(__STDC__) && !defined(macintosh) extern double fmod PROTO((double, double)); extern double pow PROTO((double, double)); #endif object * +#ifdef __SC__ +newfloatobject(double fval) +#else newfloatobject(fval) double fval; +#endif { /* For efficiency, this code is copied from newobject() */ register floatobject *op = (floatobject *) malloc(sizeof(floatobject));
