Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2015 12:51:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 197948] devel/libosmo*: simplify and misc fixes
Message-ID:  <bug-197948-13-WksJ09n2zm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197948-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197948-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197948

--- Comment #1 from Jan Beich <jbeich@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197948-13-WksJ09n2zm>