protozero icon indicating copy to clipboard operation
protozero copied to clipboard

config.hpp's endian test silently falls back to little-endian

Open zeha opened this issue 4 months ago • 5 comments

In https://github.com/PowerDNS/pdns/issues/16091 I discovered that config.hpp has an endian check using __BYTE_ORDER, but at least on GCC 15 / GNU libc platforms it doesn't work. Without including <endian.h> the macros are not defined, and config.hpp silently falls back to little endian.

Could an #include <endian.h> be added to config.hpp?

Thanks, Chris

zeha avatar Sep 07 '25 12:09 zeha