hrev54915 adds 1 changeset to branch 'master'
old head: 170aff0a14f32085a607341b95a23de56872a43d
new head: 9a7acbdbcf2feb20bd471a8a2cfafb968aa745dc
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=9a7acbdbcf2f+%5E170aff0a14f3
----------------------------------------------------------------------------
9a7acbdbcf2f: posix: protect EOF being parsed as operator and 1
see
https://github.com/haikuports/haikuports/blob/7d095c7453842db989de538921ff9e145114bc9b/dev-libs/jsoncpp/patches/jsoncpp-1.9.4.patchset
Change-Id: Iaedb67eb51e86cbc5b73a21a86b6b0b6b70209b0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3679
Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>
[ Jérôme Duval <jerome.duval@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev54915
Commit: 9a7acbdbcf2feb20bd471a8a2cfafb968aa745dc
URL: https://git.haiku-os.org/haiku/commit/?id=9a7acbdbcf2f
Author: Jérôme Duval <jerome.duval@xxxxxxxxx>
Date: Mon Jan 25 17:49:30 2021 UTC
----------------------------------------------------------------------------
2 files changed, 2 insertions(+), 2 deletions(-)
headers/posix/libio.h | 2 +-
headers/posix/stdio.h | 2 +-
----------------------------------------------------------------------------
diff --git a/headers/posix/libio.h b/headers/posix/libio.h
index b8711c4afe..15d2cf18e8 100644
--- a/headers/posix/libio.h
+++ b/headers/posix/libio.h
@@ -31,7 +31,7 @@
#include <stdarg.h>
#ifndef EOF
-# define EOF -1
+# define EOF (-1)
#endif
#define _IO_pos_t off_t /* obsolete */
diff --git a/headers/posix/stdio.h b/headers/posix/stdio.h
index b40328ea08..d3e01c4821 100644
--- a/headers/posix/stdio.h
+++ b/headers/posix/stdio.h
@@ -39,7 +39,7 @@
#ifdef EOF
# undef EOF
#endif
-#define EOF -1
+#define EOF (-1)
#ifndef SEEK_SET
# define SEEK_SET 0