summaryrefslogtreecommitdiffstats
path: root/Mac/Compat
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Compat')
-rw-r--r--Mac/Compat/getwd.c4
-rw-r--r--Mac/Compat/opendir.c8
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);