mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 00:37:38 +00:00
include/binary-io.h: guard O_BINARY usage with defined check
include/ * binary-io.h: Fix -Wundef compiler warning when O_BINARY is not defined. Wrap the check to ensure portability across platforms. Signed-off-by: Andrew Hanson <andrew@andrewhanson.dev>
This commit is contained in:
committed by
Jan Beulich
parent
d94cdcc881
commit
65a5bb3c1f
@@ -35,7 +35,7 @@
|
|||||||
# undef O_BINARY
|
# undef O_BINARY
|
||||||
# undef O_TEXT
|
# undef O_TEXT
|
||||||
#endif
|
#endif
|
||||||
#if O_BINARY
|
#if defined(O_BINARY) && O_BINARY
|
||||||
# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
|
# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
|
||||||
# include <io.h> /* declares setmode() */
|
# include <io.h> /* declares setmode() */
|
||||||
# else
|
# else
|
||||||
|
|||||||
Reference in New Issue
Block a user