From: Guido van Rossum Date: Tue, 28 Apr 1998 16:02:29 +0000 (+0000) Subject: Mac CodeWarrior has faulty declaration for hypot, which we hide with a X-Git-Tag: v1.5.2a1~799 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50cc04ee032f80133bef406eb564c6371a2f1d06;p=python Mac CodeWarrior has faulty declaration for hypot, which we hide with a #define. (Jack) --- diff --git a/Include/mymath.h b/Include/mymath.h index 9257a89df1..f4fffabf2f 100644 --- a/Include/mymath.h +++ b/Include/mymath.h @@ -9,16 +9,24 @@ #pragma lib_export off #endif -#include - -#ifdef SYMANTEC__CFM68K__ -#pragma lib_export on +#ifndef HAVE_HYPOT +extern double hypot Py_PROTO((double, double)); +#ifdef __MWERKS__ +#define hypot we_dont_want_faulty_hypot_decl +#endif #endif +#include + #ifndef HAVE_HYPOT -extern double hypot Py_PROTO((double, double)); +#ifdef __MWERKS__ +#undef hypot +#endif #endif +#ifdef SYMANTEC__CFM68K__ +#pragma lib_export on +#endif #if defined(USE_MSL) && defined(__MC68K__) /* CodeWarrior MSL 2.1.1 has weird define overrides that don't work