summaryrefslogtreecommitdiffstats
path: root/Include/mymath.h
blob: 13d32a6e08651295d54062e3fa0d56c79d6d9d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* On the 68K Mac, when using CFM (Code Fragment Manager),
   <math.h> requires special treatment -- we need to surround it with
   #pragma lib_export off / on...
   This is because MathLib.o is a static library, and exporting its
   symbols doesn't quite work...
   XXX Not sure now...  Seems to be something else going on as well... */

#ifdef SYMANTEC__CFM68K__
#pragma lib_export off
#endif

#include <math.h>

#ifdef SYMANTEC__CFM68K__
#pragma lib_export on
#endif

#if defined(HAVE_HYPOT)
/* Defined in <math.h> */
#else
extern double hypot PROTO((double, double)); /* defined in mathmodule.c */
#endif