mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* inclusion of <endian.h> in a kernel header? ok or not?
@ 2008-08-19 19:16 Frans Meulenbroeks
  2008-08-19 19:52 ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Frans Meulenbroeks @ 2008-08-19 19:16 UTC (permalink / raw)
  To: LKML

Is it ok to #include <endian.h> in a kernel header file.
This is done in linux/patchkey.h and linux/soundcard.h but other
places seem to prefer <asm/byteorder.h>

Basically I am looking for a simple way to isolate a piece of endian
specific code (something like #ifdef BIG_ENDIAN ...#endif

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-19 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-19 19:16 inclusion of <endian.h> in a kernel header? ok or not? Frans Meulenbroeks
2008-08-19 19:52 ` Adrian Bunk
2008-08-19 21:06   ` Frans Meulenbroeks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®