]> code.delx.au - pulseaudio/commitdiff
sample: Apply SPARC-specific condition on SPARC only
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 30 Jul 2013 09:21:59 +0000 (14:51 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 2 Aug 2013 08:55:29 +0000 (14:25 +0530)
Improves correctness, unbreaks software volume in recent Android.

src/pulse/sample.h

index 9eb4df0ad84cbfcfc9293add38007659e1e7d7c7..34087e04583ae218e80d05df616e1fc45e9315d4 100644 (file)
@@ -120,7 +120,7 @@ PA_C_DECL_BEGIN
 #endif
 
 /* On Sparc, WORDS_BIGENDIAN needs to be set if _BIG_ENDIAN is defined. */
-#ifdef _BIG_ENDIAN
+#if defined(__sparc__) && defined(_BIG_ENDIAN)
 #define WORDS_BIGENDIAN
 #endif