diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:37:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:37:27 (GMT) |
commit | 74a1e63a89cdaad288260600cf77e3a20811f49b (patch) | |
tree | fcac57d67ef4a81ecfb8ae462dc3d254e9cf46be /Mac/Compat | |
parent | 2d391f2f397d66e2ac3cadc0b3c3b008a57094bb (diff) | |
download | cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.zip cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.tar.gz cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.tar.bz2 |
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
Diffstat (limited to 'Mac/Compat')
-rw-r--r-- | Mac/Compat/getwd.c | 4 | ||||
-rw-r--r-- | Mac/Compat/opendir.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c index 3f702c9..df96d42 100644 --- a/Mac/Compat/getwd.c +++ b/Mac/Compat/getwd.c @@ -53,7 +53,7 @@ getwd(char *cwd) sprintf(cwd, "I/O error %d in PBHGetVolSync", err); return NULL; } -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON p2cstrcpy(cwd, (StringPtr)cwd); ecwd = strchr(cwd, EOS); #else @@ -77,7 +77,7 @@ getwd(char *cwd) return NULL; } dirid= pb.d.ioDrParID; -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON p2cstrcpy(ebuf, (StringPtr)ebuf); ebuf += strlen(ebuf); #else diff --git a/Mac/Compat/opendir.c b/Mac/Compat/opendir.c index f803236..a015609 100644 --- a/Mac/Compat/opendir.c +++ b/Mac/Compat/opendir.c @@ -20,7 +20,7 @@ DIR * opendir(path) char *path; { -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON Str255 ppath; FSSpec fss; int plen; @@ -80,7 +80,7 @@ void closedir(dirp) DIR *dirp; { -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON dirp->nextfile = 0; #else WDPBRec pb; @@ -110,7 +110,7 @@ readdir(dp) dir.d_name[0]= 0; pb.d.ioNamePtr= (unsigned char *)dir.d_name; -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON pb.d.ioVRefNum= dp->vrefnum; pb.d.ioDrDirID= dp->dirid; #else @@ -123,7 +123,7 @@ readdir(dp) errno = EIO; return NULL; } -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON p2cstrcpy(dir.d_name, (StringPtr)dir.d_name); #else (void) p2cstr((unsigned char *)dir.d_name); |