diff options
author | Guido van Rossum <guido@python.org> | 1994-08-29 08:42:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-29 08:42:37 (GMT) |
commit | 739267b7c34c0bdf934059804fde3f027e84bd0b (patch) | |
tree | 25dc06eae2dd9cf8b2bce19683e8d7a5b8ebbc08 /Mac/Include | |
parent | e78344444086581bdf59f13415b0c701e740cce1 (diff) | |
download | cpython-739267b7c34c0bdf934059804fde3f027e84bd0b.zip cpython-739267b7c34c0bdf934059804fde3f027e84bd0b.tar.gz cpython-739267b7c34c0bdf934059804fde3f027e84bd0b.tar.bz2 |
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
versions -- they now share config.c and config.h, and statting is
always done through macstat.[ch] (THINK's <stat.h> defines funny
constants). Also the configuration of stdwin is done differently: you
have to define USE_STDWIN to the compiler prefix.
Diffstat (limited to 'Mac/Include')
-rw-r--r-- | Mac/Include/config.h | 7 | ||||
-rw-r--r-- | Mac/Include/macdefs.h | 11 |
2 files changed, 7 insertions, 11 deletions
diff --git a/Mac/Include/config.h b/Mac/Include/config.h index 7b98e95..e04fde6 100644 --- a/Mac/Include/config.h +++ b/Mac/Include/config.h @@ -1,4 +1,9 @@ -/* config.h for Macintosh THINK C 6.0. */ +/* config.h for Macintosh THINK C 6.0 and MPW 3.2. */ + +#ifdef MPW +/* This must be is MPW 3.x */ +#define MPW_3 1 +#endif /* Define if on Macintosh (THINK_C or MPW should also be defined) */ #define macintosh diff --git a/Mac/Include/macdefs.h b/Mac/Include/macdefs.h index dcdedb1..c1e8a6e 100644 --- a/Mac/Include/macdefs.h +++ b/Mac/Include/macdefs.h @@ -7,17 +7,13 @@ #include <Files.h> #include <OSUtils.h> -#ifndef MPW +#ifdef THINK_C #include <pascal.h> #endif #include <errno.h> #include <string.h> -/* Difference in origin between Mac and Unix clocks: */ -#define TIMEDIFF ((unsigned long) \ - (((1970-1904)*365 + (1970-1904)/4) * 24 * 3600)) - /* Macro to find out whether we can do HFS-only calls: */ #define FSFCBLen (* (short *) 0x3f6) #define hfsrunning() (FSFCBLen > 0) @@ -31,8 +27,3 @@ #endif #define EOS '\0' #define SEP ':' - -#if 0 // doesn't work -/* Call Macsbug: */ -pascal void Debugger() extern 0xA9FF; -#endif |