diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-09 20:39:24 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-09 20:39:24 (GMT) |
commit | a0e76bebd3ddb05461c9f692ff1f53267203aaae (patch) | |
tree | b6b5f84f0fa20a121e82b2c9ea77ab57c8b766f5 | |
parent | b81cf9d61c71f9b5949b9424cec1f59ac4a426e8 (diff) | |
download | cpython-a0e76bebd3ddb05461c9f692ff1f53267203aaae.zip cpython-a0e76bebd3ddb05461c9f692ff1f53267203aaae.tar.gz cpython-a0e76bebd3ddb05461c9f692ff1f53267203aaae.tar.bz2 |
Ported to CodeWarrior 6
-rw-r--r-- | Mac/Compat/macstat.h | 5 | ||||
-rw-r--r-- | Mac/Modules/macmodule.c | 1 | ||||
-rw-r--r-- | Mac/Unsupported/mactcp/macdnrmodule.c | 9 |
3 files changed, 10 insertions, 5 deletions
diff --git a/Mac/Compat/macstat.h b/Mac/Compat/macstat.h index 4c24219..64ace4e 100644 --- a/Mac/Compat/macstat.h +++ b/Mac/Compat/macstat.h @@ -26,3 +26,8 @@ struct macstat { #define S_IREAD 0400 #define S_IWRITE 0200 #define S_IEXEC 0100 + +/* To stop inclusion of MWerks header: */ +#ifndef _STAT +#define _STAT +#endif diff --git a/Mac/Modules/macmodule.c b/Mac/Modules/macmodule.c index 9d757bc..239e1a5 100644 --- a/Mac/Modules/macmodule.c +++ b/Mac/Modules/macmodule.c @@ -454,6 +454,7 @@ mac_write(self, args) } #endif /* !__MWERKS__ */ +#undef MALLOC_DEBUG #ifdef MALLOC_DEBUG static object * mac_mstats(self, args) diff --git a/Mac/Unsupported/mactcp/macdnrmodule.c b/Mac/Unsupported/mactcp/macdnrmodule.c index ac42222..fe89e03 100644 --- a/Mac/Unsupported/mactcp/macdnrmodule.c +++ b/Mac/Unsupported/mactcp/macdnrmodule.c @@ -32,9 +32,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifndef HAVE_UNIVERSAL_HEADERS #define ResultUPP ResultProcPtr #define NewResultProc(x) (x) -/* The '2' has move in this name... */ -#define Result2UPP ResultProc2Ptr -#define NewResult2Proc(x) (x) +#define ResultProc2UPP ResultProc2Ptr +#define NewResultProc2Proc(x) (x) #endif static object *ErrorObject; @@ -365,7 +364,7 @@ dnr_HInfo(self, args) OSErr err; char *hostname; dnrrobject *rv; - Result2UPP cb_upp = NewResult2Proc(dnrr_done); + ResultProc2UPP cb_upp = NewResultProc2Proc(dnrr_done); if (!newgetargs(args, "s", &hostname)) return NULL; @@ -398,7 +397,7 @@ dnr_MXInfo(self, args) OSErr err; char *hostname; dnrrobject *rv; - Result2UPP cb_upp = NewResult2Proc(dnrr_done); + ResultProc2UPP cb_upp = NewResultProc2Proc(dnrr_done); if (!newgetargs(args, "s", &hostname)) return NULL; |