projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3207d4
)
pulse: Fix endianness definition on Sparc.
author
Tanu Kaskinen
<tanuk@iki.fi>
Fri, 4 Jan 2013 15:21:25 +0000
(17:21 +0200)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Fri, 4 Jan 2013 15:21:25 +0000
(17:21 +0200)
Patch by Brian Cameron <brian.cameron@oracle.com>.
src/pulse/sample.h
patch
|
blob
|
history
diff --git
a/src/pulse/sample.h
b/src/pulse/sample.h
index
965559e
..
9067951
100644
(file)
--- a/
src/pulse/sample.h
+++ b/
src/pulse/sample.h
@@
-112,11
+112,18
@@
PA_C_DECL_BEGIN
#if !defined(WORDS_BIGENDIAN)
+
#if defined(__BYTE_ORDER)
#if __BYTE_ORDER == __BIG_ENDIAN
#define WORDS_BIGENDIAN
#endif
#endif
+
+/* On Sparc, WORDS_BIGENDIAN needs to be set if _BIG_ENDIAN is defined. */
+#ifdef _BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
+
#endif
/** Maximum number of allowed channels */