Kaydet (Commit) 0acd4b6e authored tarafından Guido van Rossum's avatar Guido van Rossum

changes for Mac CFM-68K

üst 6b13ba22
...@@ -47,12 +47,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -47,12 +47,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "config.h" #include "config.h"
#endif #endif
#ifdef __CFM68K__
#define UsingSharedLibs
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "myproto.h" #include "myproto.h"
#ifdef __CFM68K__
#pragma lib_export on
#endif
#include "object.h" #include "object.h"
#include "objimpl.h" #include "objimpl.h"
......
...@@ -56,6 +56,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -56,6 +56,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
extern "C" { extern "C" {
#endif #endif
#ifdef __CFM68K__
#pragma lib_export on
#endif
#ifndef HAVE_STDLIB_H #ifndef HAVE_STDLIB_H
extern ANY *malloc Py_PROTO((size_t)); extern ANY *malloc Py_PROTO((size_t));
extern ANY *calloc Py_PROTO((size_t, size_t)); extern ANY *calloc Py_PROTO((size_t, size_t));
......
/* 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment