the definition of read is not enabled when c++ compiler is available (only windows) 47/18347/1
authorAngelo Mantellini <[email protected]>
Sat, 16 Mar 2019 10:14:46 +0000 (11:14 +0100)
committerAngelo Mantellini <[email protected]>
Sat, 16 Mar 2019 10:14:46 +0000 (11:14 +0100)
Change-Id: I1dc33627a91a2a99a40d6a9f3714911a6e172f78
Signed-off-by: Angelo Mantellini <[email protected]>
libparc/parc/windows/parc_Utils.h

index 85cdc94..25b012a 100644 (file)
@@ -113,6 +113,10 @@ int dprintf(int fd, char *fmt, ...);
 \r
 #ifndef __cplusplus\r
 \r
+#ifndef read\r
+#define read _read\r
+#endif\r
+\r
 #ifndef close\r
 #define close _close\r
 #endif\r
@@ -131,10 +135,6 @@ int dprintf(int fd, char *fmt, ...);
 #define unlink _unlink\r
 #endif\r
 \r
-#ifndef read\r
-#define read _read\r
-#endif\r
-\r
 #ifndef strcasecmp\r
 #define strncasecmp _strnicmp\r
 #endif\r