[Bug 197948] devel/libosmo*: simplify and misc fixes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 23 12:51:38 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197948

--- Comment #1 from Jan Beich <jbeich at FreeBSD.org> ---
Endian stuff is tricky. A portable code would have to account for all the
places endian.h can be found and all the underscores/prefixes various
implementations have. It's way easier to just include endian.h in the few
places that have

  #if __BYTE_ORDER == __LITTLE_ENDIAN

and sed(1) everything into shape that builds on BSDs.

Ironically, the above conditional would compile without warnings even when the
macros are undefined. They're implicitly converted to 0 and thus the comparison
is always true.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list