From: Angelo Mantellini Date: Wed, 13 Mar 2019 16:16:46 +0000 (+0100) Subject: Close, open and write are note redevined in C++ X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F18255%2F1;p=cicn.git Close, open and write are note redevined in C++ Change-Id: Iaef43476705533de0a858f2b808382103a85a4bd Signed-off-by: Angelo Mantellini --- diff --git a/libparc/parc/windows/parc_Utils.h b/libparc/parc/windows/parc_Utils.h index 975eae0f..85cdc94e 100644 --- a/libparc/parc/windows/parc_Utils.h +++ b/libparc/parc/windows/parc_Utils.h @@ -111,6 +111,8 @@ int dprintf(int fd, char *fmt, ...); #define access _access #endif +#ifndef __cplusplus + #ifndef close #define close _close #endif @@ -123,6 +125,8 @@ int dprintf(int fd, char *fmt, ...); #define open _open #endif +#endif + #ifndef unlink #define unlink _unlink #endif