[pulseaudio-commits] r2157 - /branches/prepare-0.9.10/src/pulse/sample.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Mar 27 16:25:09 PDT 2008


Author: lennart
Date: Fri Mar 28 00:25:08 2008
New Revision: 2157

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2157&root=pulseaudio&view=rev
Log:
merge r2098 from trunk

Modified:
    branches/prepare-0.9.10/src/pulse/sample.h

Modified: branches/prepare-0.9.10/src/pulse/sample.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/prepare-0.9.10/src/pulse/sample.h?rev=2157&root=pulseaudio&r1=2156&r2=2157&view=diff
==============================================================================
--- branches/prepare-0.9.10/src/pulse/sample.h (original)
+++ branches/prepare-0.9.10/src/pulse/sample.h Fri Mar 28 00:25:08 2008
@@ -27,6 +27,7 @@
 
 #include <inttypes.h>
 #include <sys/types.h>
+#include <sys/param.h>
 #include <math.h>
 
 #include <pulse/cdecl.h>
@@ -103,6 +104,14 @@
  * Constants and routines for sample type handling */
 
 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




More information about the pulseaudio-commits mailing list