Skip to content

Fix GCC version detection for GUINT*_SWAP_LE_BE

Sam James requested to merge thesamesam/glib:le-be-swap-gcc into main

The #if condition as-written fails for any major >= 5 if minor < 3, e.g. GCC 14.2 and so on.

Use the idiom described in the GCC docs [0] to avoid this.

[0] https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

Fixes: 57878d60

Merge request reports

Loading