mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Mac CodeWarrior has faulty declaration for hypot, which we hide with a
#define. (Jack)
This commit is contained in:
parent
53117ae82a
commit
50cc04ee03
1 changed files with 13 additions and 5 deletions
|
|
@ -9,17 +9,25 @@
|
||||||
#pragma lib_export off
|
#pragma lib_export off
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_HYPOT
|
||||||
|
extern double hypot Py_PROTO((double, double));
|
||||||
|
#ifdef __MWERKS__
|
||||||
|
#define hypot we_dont_want_faulty_hypot_decl
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_HYPOT
|
||||||
|
#ifdef __MWERKS__
|
||||||
|
#undef hypot
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SYMANTEC__CFM68K__
|
#ifdef SYMANTEC__CFM68K__
|
||||||
#pragma lib_export on
|
#pragma lib_export on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_HYPOT
|
|
||||||
extern double hypot Py_PROTO((double, double));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(USE_MSL) && defined(__MC68K__)
|
#if defined(USE_MSL) && defined(__MC68K__)
|
||||||
/* CodeWarrior MSL 2.1.1 has weird define overrides that don't work
|
/* CodeWarrior MSL 2.1.1 has weird define overrides that don't work
|
||||||
** when you take the address of math functions. If I interpret the
|
** when you take the address of math functions. If I interpret the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue