summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulse/gccmacro.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h
index 5a2a250f..032c3bae 100644
--- a/src/pulse/gccmacro.h
+++ b/src/pulse/gccmacro.h
@@ -86,4 +86,13 @@
#endif
#endif
+#ifndef PA_GCC_PACKED
+#ifdef __GNUCC__
+#define PA_GCC_PACKED __attribute__ ((packed))
+#else
+/** Structure shall be packed in memory **/
+#define PA_GCC_PACKED
+#endif
+#endif
+
#endif