From 79445435d86aea92f85a1c0398ccada48af578e5 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Sat, 16 Mar 2019 11:14:46 +0100 Subject: the definition of read is not enabled when c++ compiler is available (only windows) Change-Id: I1dc33627a91a2a99a40d6a9f3714911a6e172f78 Signed-off-by: Angelo Mantellini --- libparc/parc/windows/parc_Utils.h | 8 ++++---- 1 file 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 -- cgit 1.2.3-korg