changeset 1006:7a781c1285d9

Use attribute packed.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 03:21:46 +0200
parents 36add4215cdd
children d190ebba813e
files src/dmpack.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmpack.h	Sun Mar 01 03:10:03 2015 +0200
+++ b/src/dmpack.h	Sun Mar 01 03:21:46 2015 +0200
@@ -34,7 +34,7 @@
 } DMPackFile;
 
 
-typedef struct
+typedef struct __attribute__((__packed__))
 {
     char    ident[8];          // Magic identifier
     Uint16  version;           // Version