mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
for MPW __SC__ compiler
This commit is contained in:
parent
caeaafccf7
commit
07e3a7e781
1 changed files with 6 additions and 2 deletions
|
@ -32,7 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include "mymath.h"
|
||||||
|
|
||||||
#ifdef i860
|
#ifdef i860
|
||||||
/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
|
/* 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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __STDC__
|
#if !defined(__STDC__) && !defined(macintosh)
|
||||||
extern double fmod PROTO((double, double));
|
extern double fmod PROTO((double, double));
|
||||||
extern double pow PROTO((double, double));
|
extern double pow PROTO((double, double));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
object *
|
object *
|
||||||
|
#ifdef __SC__
|
||||||
|
newfloatobject(double fval)
|
||||||
|
#else
|
||||||
newfloatobject(fval)
|
newfloatobject(fval)
|
||||||
double fval;
|
double fval;
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
/* For efficiency, this code is copied from newobject() */
|
/* For efficiency, this code is copied from newobject() */
|
||||||
register floatobject *op = (floatobject *) malloc(sizeof(floatobject));
|
register floatobject *op = (floatobject *) malloc(sizeof(floatobject));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue