projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5678ae
)
use __BYTE_ORDER macro for detecting byte order, as suggested on http://unixpapa...
author
Lennart Poettering
<lennart@poettering.net>
Sun, 6 Jan 2008 20:38:11 +0000
(20:38 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 6 Jan 2008 20:38:11 +0000
(20:38 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2098
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulse/sample.h
patch
|
blob
|
history
diff --git
a/src/pulse/sample.h
b/src/pulse/sample.h
index
8f9f173
..
f0b839f
100644
(file)
--- a/
src/pulse/sample.h
+++ b/
src/pulse/sample.h
@@
-27,6
+27,7
@@
#include <inttypes.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <math.h>
#include <pulse/cdecl.h>
@@
-104,6
+105,14
@@
PA_C_DECL_BEGIN
+#if !defined(WORDS_BIGENDIAN)
+#if defined(__BYTE_ORDER)
+#if __BYTE_ORDER == __BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
+#endif
+#endif
+
/** Maximum number of allowed channels */
#define PA_CHANNELS_MAX 32