Code Review
/
cicn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
23d161b
)
the definition of read is not enabled when c++ compiler is available (only windows)
47/18347/1
author
Angelo Mantellini
<
[email protected]
>
Sat, 16 Mar 2019 10:14:46 +0000
(11:14 +0100)
committer
Angelo 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
patch
|
blob
|
history
diff --git
a/libparc/parc/windows/parc_Utils.h
b/libparc/parc/windows/parc_Utils.h
index
85cdc94
..
25b012a
100644
(file)
--- a/
libparc/parc/windows/parc_Utils.h
+++ b/
libparc/parc/windows/parc_Utils.h
@@
-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