File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,12 +47,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4747#include "config.h"
4848#endif
4949
50+ #ifdef __CFM68K__
51+ #define UsingSharedLibs
52+ #endif
53+
5054#include <stdio.h>
5155#include <string.h>
5256#include <errno.h>
5357
5458#include "myproto.h"
5559
60+ #ifdef __CFM68K__
61+ #pragma lib_export on
62+ #endif
63+
5664#include "object.h"
5765#include "objimpl.h"
5866
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5656extern "C" {
5757#endif
5858
59+ #ifdef __CFM68K__
60+ #pragma lib_export on
61+ #endif
62+
5963#ifndef HAVE_STDLIB_H
6064extern ANY * malloc Py_PROTO ((size_t ));
6165extern ANY * calloc Py_PROTO ((size_t , size_t ));
Original file line number Diff line number Diff line change 1+ /* 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+
8+ #ifdef __CFM68K__
9+ #pragma lib_export off
10+ #endif
11+
12+ #include <math.h>
13+
14+ #ifdef __CFM68K__
15+ #pragma lib_export on
16+ #endif
You can’t perform that action at this time.
0 commit comments