Mercurial > hg > dmlib
comparison src/dmpack.h @ 1006:7a781c1285d9
Use attribute packed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Mar 2015 03:21:46 +0200 |
parents | aeafd6d44465 |
children | 1684bf6aa1f8 |
comparison
equal
deleted
inserted
replaced
1005:36add4215cdd | 1006:7a781c1285d9 |
---|---|
32 char * filename; // Filename & path | 32 char * filename; // Filename & path |
33 FILE * file; // File | 33 FILE * file; // File |
34 } DMPackFile; | 34 } DMPackFile; |
35 | 35 |
36 | 36 |
37 typedef struct | 37 typedef struct __attribute__((__packed__)) |
38 { | 38 { |
39 char ident[8]; // Magic identifier | 39 char ident[8]; // Magic identifier |
40 Uint16 version; // Version | 40 Uint16 version; // Version |
41 Uint32 dirEntries; // Number of entries | 41 Uint32 dirEntries; // Number of entries |
42 Uint32 dirOffset; // Offset of the directory | 42 Uint32 dirOffset; // Offset of the directory |