summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-27 10:13:37 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-27 10:13:37 (GMT)
commit07e3a7e781591cc7e1b6c34995bf1528e40db9fa (patch)
tree64405342ecd18fb8e3f198bf9511b76a0c93fa4b /Objects
parentcaeaafccf7343497cc654943db09c163e320316d (diff)
downloadcpython-07e3a7e781591cc7e1b6c34995bf1528e40db9fa.zip
cpython-07e3a7e781591cc7e1b6c34995bf1528e40db9fa.tar.gz
cpython-07e3a7e781591cc7e1b6c34995bf1528e40db9fa.tar.bz2
for MPW __SC__ compiler
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 04d80b1..a2eba51 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -32,7 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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));