GNOME Bugzilla – Bug 613795
libmodplug's public header requires WORDS_BIGENDIAN
Last modified: 2010-03-24 16:27:32 UTC
configure leaves WORDS_BIGENDIAN undefined (default behaviour for AC_C_BIGENDIAN), which doesn't work well with libmodplug's sndfile.h and recent introduction of compiler warning flags.
Created attachment 156968 [details] [review] Force configure to define WORDS_BIGENDIAN instead of leaving it undefined
I wonder if that patch could trigger weird problems with libraries doing "#ifdef WORDS_BIGENDIAN" which would always be true with your patch and if it wasn't better to put #ifndef WORDS_BIGENDIAN #define WORDS_BIGENDIAN 0 #endif at the top of the modplug header.
I would rather fix modplug by doing #if defined(WORDS_BIGENDIAN) && WORDS_BIGENDIAN instead of #if WORDS_BIGENDIAN I've mailed that to libmodplug maintainer. But he's far away, and -bad maintainers are close by ;)
The following fix has been pushed: 06242ff modplug: Define WORDS_BIGENDIAN to avoid undefined warning
Created attachment 156983 [details] [review] modplug: Define WORDS_BIGENDIAN to avoid undefined warning