Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0acd4b6

Browse files
committed
changes for Mac CFM-68K
1 parent 6b13ba2 commit 0acd4b6

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

Include/allobjects.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Include/mymalloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5656
extern "C" {
5757
#endif
5858

59+
#ifdef __CFM68K__
60+
#pragma lib_export on
61+
#endif
62+
5963
#ifndef HAVE_STDLIB_H
6064
extern ANY *malloc Py_PROTO((size_t));
6165
extern ANY *calloc Py_PROTO((size_t, size_t));

Include/mymath.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

0 commit comments

Comments
 (0)