aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-03-16 11:14:46 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-03-16 11:14:46 +0100
commit79445435d86aea92f85a1c0398ccada48af578e5 (patch)
tree966d8f8310e33434da22fbf8d35ef5c7fca3ddaf
parent23d161b154b061cfa33ccbb8551ff48711aedc85 (diff)
the definition of read is not enabled when c++ compiler is available (only windows)
Change-Id: I1dc33627a91a2a99a40d6a9f3714911a6e172f78 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
-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