diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-03-29 20:39:50 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-03-29 20:39:50 +0000 |
commit | 599a6aba5619bea100e45b31483148d232229f91 (patch) | |
tree | fa1c0fcbe4cb0ec9ec1a2496b5d154c230aa1014 /source/q_shared.h | |
parent | bb4735d395c8c7c8d811400a349476d088d671ff (diff) |
Fixed a compilation warning in Image_LoadPCX.
Use -Wno-strict-aliasing instead of -fno-strict-aliasing.
Added q_packed attribute to zstatic_t structure.
Diffstat (limited to 'source/q_shared.h')
-rw-r--r-- | source/q_shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/q_shared.h b/source/q_shared.h index 1f4cd65..9bd88a1 100644 --- a/source/q_shared.h +++ b/source/q_shared.h @@ -40,6 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #else #define q_sentinel #endif +#define q_packed __attribute__((packed)) #define q_likely( x ) __builtin_expect( !!(x), 1 ) #define q_unlikely( x ) __builtin_expect( !!(x), 0 ) @@ -55,6 +56,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define q_noreturn #define q_malloc #define q_sentinel +#define q_packed #define q_likely( x ) !!(x) #define q_unlikely( x ) !!(x) |