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 9eb4df0..34087e0 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