summaryrefslogtreecommitdiffstats
path: root/Include/mymath.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-18 14:50:12 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-18 14:50:12 (GMT)
commit0acd4b6e82b56c3e98855dfb7523c9a1086bfc85 (patch)
treef893f8142a979f372417a3c3c5e073d249ef4b8a /Include/mymath.h
parent6b13ba22d968981c4465029759f4156a3948fc49 (diff)
downloadcpython-0acd4b6e82b56c3e98855dfb7523c9a1086bfc85.zip
cpython-0acd4b6e82b56c3e98855dfb7523c9a1086bfc85.tar.gz
cpython-0acd4b6e82b56c3e98855dfb7523c9a1086bfc85.tar.bz2
changes for Mac CFM-68K
Diffstat (limited to 'Include/mymath.h')
-rw-r--r--Include/mymath.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Include/mymath.h b/Include/mymath.h
new file mode 100644
index 0000000..b34b77e
--- /dev/null
+++ b/Include/mymath.h
@@ -0,0 +1,16 @@
+/* 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 __CFM68K__
+#pragma lib_export off
+#endif
+
+#include <math.h>
+
+#ifdef __CFM68K__
+#pragma lib_export on
+#endif