OSDN Git Service

speaker-test: only check byte order once
authorDan McGee <dpmcgee@gmail.com>
Sun, 10 May 2009 00:47:40 +0000 (02:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 11 May 2009 07:08:35 +0000 (09:08 +0200)
commit6a1109b73257a9e17c97d3c9d6830c203b19ba3b
tree34920ea1068b5a208688eb64c60ee4a6696cc6ae
parent8b0db35f6374264f242e070b97d68a93a48f9818
speaker-test: only check byte order once

Rather than having numerous preprocessor directives scattered in the code
checking __BYTE_ORDER, only check it once and define a set of macros
accordingly that can be used in the rest of the code. This makes things
simpler to read and less error-prone.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
speaker-test/speaker-test.c