summaryrefslogtreecommitdiffstats
path: root/src/esound-spec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/esound-spec.h')
-rw-r--r--src/esound-spec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/esound-spec.h b/src/esound-spec.h
index 1c2dc022..f7a4d3db 100644
--- a/src/esound-spec.h
+++ b/src/esound-spec.h
@@ -181,6 +181,7 @@ typedef int esd_client_state_t;
/* switch endian order for cross platform playing */
#define swap_endian_32(x) ((x >> 24) | ((x >> 8) & 0xFF00) | (((x & 0xFF00) << 8)) | (x << 24))
+#define maybe_swap_endian_32(c,x) ((c) ? swap_endian_32(x) : x)
/* the endian key is transferred in binary, if it's read into int, */
/* and matches ESD_ENDIAN_KEY (ENDN), then the endianness of the */