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

Skip to content

Commit 6a5df90

Browse files
committed
ported Jacks changes back to think C
1 parent f74d4e2 commit 6a5df90

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Mac/Include/config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
/* Define if on Macintosh (THINK_C, MPW or __MWERKS__ should also be defined) */
99
#define macintosh
1010

11+
#ifdef THINK_C
12+
#define HAVE_FOPENRF
13+
#endif
14+
1115
/* Define if on AIX 3.
1216
System headers sometimes define this.
1317
We just want to avoid a redefinition error message. */

Mac/Modules/config.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,14 @@ extern void initnew();
261261
extern void initdl();
262262
extern void initsyslog();
263263
extern void initgestalt();
264-
#ifdef THINK
264+
#ifdef THINK_C
265265
extern void initmacconsole();
266266
#endif
267267
extern void initctb();
268268
extern void initmacspeech();
269269
extern void initmacdnr();
270270
extern void initmactcp();
271+
extern void initAE();
271272

272273
/* -- ADDMODULE MARKER 1 -- */
273274

@@ -297,14 +298,21 @@ struct {
297298
{"rotor", initrotor},
298299
{"new", initnew},
299300
{"gestalt", initgestalt},
300-
#ifdef THINK
301+
#ifdef THINK_C
301302
{"macconsole", initmacconsole},
302303
#endif
303304
{"ctb", initctb},
305+
#ifdef __MWERKS__
306+
/* This is really "Jack Jansen" specific for now :-) */
304307
{"macspeech", initmacspeech},
305308
{"imgformat", initimgformat},
306309
{"macdnr", initmacdnr},
307310
{"mactcp", initmactcp},
311+
#endif
312+
#ifdef THINK_C
313+
/* This is really "Guido van Rossum" specific... :-) */
314+
{"AE", initAE},
315+
#endif
308316

309317
/* -- ADDMODULE MARKER 2 -- */
310318

0 commit comments

Comments
 (0)