[PATCH 0/3] Fix -Wundef warnings in include/ and bfd/

Andrew Hanson andrew@andrewhanson.dev
Sun Sep 14 19:52:44 GMT 2025


This series fixes several -Wundef warnings that appear when building with
extra warning flags enabled. The changes make the conditionals explicit
about whether macros are defined before comparing them.

Notes:
- Only trivial preprocessor guard changes are made.
- No functional behavior changes.
- I left existing style mismatches with .editorconfig as-is.


Andrew Hanson (3):
  include/binary-io.h: guard O_BINARY usage with defined check
  bfd: guard ARCH_SIZE uses to avoid -Wundef
  include/aout/aout64.h: guard ARCH_SIZE with defined()

 bfd/elf-bfd.h         | 5 ++---
 include/aout/aout64.h | 2 +-
 include/binary-io.h   | 4 ++++
 3 files changed, 7 insertions(+), 4 deletions(-)

-- 
2.51.0



More information about the Binutils mailing list