mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
posix: protect EOF being parsed as operator and 1
see 7d095c7453/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@gmail.com>
This commit is contained in:
parent
170aff0a14
commit
9a7acbdbcf
@ -31,7 +31,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifndef EOF
|
||||
# define EOF -1
|
||||
# define EOF (-1)
|
||||
#endif
|
||||
|
||||
#define _IO_pos_t off_t /* obsolete */
|
||||
|
@ -39,7 +39,7 @@
|
||||
#ifdef EOF
|
||||
# undef EOF
|
||||
#endif
|
||||
#define EOF -1
|
||||
#define EOF (-1)
|
||||
|
||||
#ifndef SEEK_SET
|
||||
# define SEEK_SET 0
|
||||
|
Loading…
Reference in New Issue
Block a user