diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-04-11 16:51:21 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-04-11 16:51:21 +0000 |
commit | 29cbd88138291d4344bad166b9943814b943e293 (patch) | |
tree | a263d67686184f80fbabe8d027665a4e97d4e753 | |
parent | 096e7f0f817d5dbf130e623bdae0388019bfbfc6 (diff) |
add new PA_GCC_PACKED macro
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2253 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulse/gccmacro.h | 9 |
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 |