aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libparc/parc/windows/parc_Utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libparc/parc/windows/parc_Utils.h b/libparc/parc/windows/parc_Utils.h
index 85cdc94e..25b012a2 100644
--- a/libparc/parc/windows/parc_Utils.h
+++ b/libparc/parc/windows/parc_Utils.h
@@ -113,6 +113,10 @@ int dprintf(int fd, char *fmt, ...);
#ifndef __cplusplus
+#ifndef read
+#define read _read
+#endif
+
#ifndef close
#define close _close
#endif
@@ -131,10 +135,6 @@ int dprintf(int fd, char *fmt, ...);
#define unlink _unlink
#endif
-#ifndef read
-#define read _read
-#endif
-
#ifndef strcasecmp
#define strncasecmp _strnicmp
#endif