blob: c6c6e6bc27818a3bb43c5252c191d77ec9fbaa5f [file] [log] [blame]
Guido van Rossum0acd4b61995-02-18 14:50:12 +00001/* On the 68K Mac, when using CFM (Code Fragment Manager),
2 <math.h> requires special treatment -- we need to surround it with
3 #pragma lib_export off / on...
4 This is because MathLib.o is a static library, and exporting its
5 symbols doesn't quite work...
6 XXX Not sure now... Seems to be something else going on as well... */
7
Jack Jansenf9480ce1995-06-27 13:12:09 +00008#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +00009#pragma lib_export off
10#endif
11
12#include <math.h>
13
Jack Jansenf9480ce1995-06-27 13:12:09 +000014#ifdef SYMANTEC__CFM68K__
Guido van Rossum0acd4b61995-02-18 14:50:12 +000015#pragma lib_export on
16#endif
Guido van Rossum9de624d1996-07-30 16:55:08 +000017
18#if defined(HAVE_HYPOT)
19/* Defined in <math.h> */
20#else
Guido van Rossum1d606141996-08-08 18:44:36 +000021extern double hypot Py_PROTO((double, double)); /* defined in mathmodule.c */
Guido van Rossum9de624d1996-07-30 16:55:08 +000022#endif