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/opendir.c | |
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/opendir.c')
-rw-r--r-- | Mac/Compat/opendir.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |