]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
changes for Mac CFM-68K
authorGuido van Rossum <guido@python.org>
Sat, 18 Feb 1995 14:50:12 +0000 (14:50 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 18 Feb 1995 14:50:12 +0000 (14:50 +0000)
Include/allobjects.h
Include/mymalloc.h
Include/mymath.h [new file with mode: 0644]

index 34b3816b5b6ff3184b60b312e70aaa693ff87bf9..6dbdb1e58e58b9db3e013bcaa1163c09b5b896af 100644 (file)
@@ -47,12 +47,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "config.h"
 #endif
 
+#ifdef __CFM68K__
+#define UsingSharedLibs
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 
 #include "myproto.h"
 
+#ifdef __CFM68K__
+#pragma lib_export on
+#endif
+
 #include "object.h"
 #include "objimpl.h"
 
index f7c0ae8ec70c3e1ca9fd5a26853e4c21163d3699..db0c9bd4184dc5b61bc045d6b7e09ea2728185af 100644 (file)
@@ -56,6 +56,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 extern "C" {
 #endif
 
+#ifdef __CFM68K__
+#pragma lib_export on
+#endif
+
 #ifndef HAVE_STDLIB_H
 extern ANY *malloc Py_PROTO((size_t));
 extern ANY *calloc Py_PROTO((size_t, size_t));
diff --git a/Include/mymath.h b/Include/mymath.h
new file mode 100644 (file)
index 0000000..b34b77e
--- /dev/null
@@ -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