diff src/sid/xs_sidplay2.cc @ 2475:a5f1c47cee0c

Use Glib endianess macros.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 30 Mar 2008 01:25:40 +0200
parents 22f1948c9c28
children 89d4e09a8988
line wrap: on
line diff
--- a/src/sid/xs_sidplay2.cc	Sun Mar 30 01:16:00 2008 +0200
+++ b/src/sid/xs_sidplay2.cc	Sun Mar 30 01:25:40 2008 +0200
@@ -173,10 +173,14 @@
 			break;
 
 		case FMT_U16_NE:
-#ifdef WORDS_BIGENDIAN
+#if G_BYTE_ORDER == G_BIG_ENDIAN
 			myEngine->currConfig.sampleFormat = SID2_BIG_UNSIGNED;
 #else
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
 			myEngine->currConfig.sampleFormat = SID2_LITTLE_UNSIGNED;
+#else
+#error Unsupported endianess!
+#endif
 #endif
 			break;
 
@@ -190,10 +194,14 @@
 
 		default:
 			myStatus->audioFormat = FMT_S16_NE;
-#ifdef WORDS_BIGENDIAN
+#if G_BYTE_ORDER == G_BIG_ENDIAN
 			myEngine->currConfig.sampleFormat = SID2_BIG_SIGNED;
 #else
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
 			myEngine->currConfig.sampleFormat = SID2_LITTLE_SIGNED;
+#else
+#error Unsupported endianess!
+#endif
 #endif
 			break;