Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07e3a7e

Browse files
committed
for MPW __SC__ compiler
1 parent caeaafc commit 07e3a7e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Objects/floatobject.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3232

3333
#include <errno.h>
3434
#include <ctype.h>
35-
#include <math.h>
35+
#include "mymath.h"
3636

3737
#ifdef i860
3838
/* 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.
7171
#endif
7272
#endif
7373

74-
#ifndef __STDC__
74+
#if !defined(__STDC__) && !defined(macintosh)
7575
extern double fmod PROTO((double, double));
7676
extern double pow PROTO((double, double));
7777
#endif
7878

7979
object *
80+
#ifdef __SC__
81+
newfloatobject(double fval)
82+
#else
8083
newfloatobject(fval)
8184
double fval;
85+
#endif
8286
{
8387
/* For efficiency, this code is copied from newobject() */
8488
register floatobject *op = (floatobject *) malloc(sizeof(floatobject));

0 commit comments

Comments
 (0)