summaryrefslogtreecommitdiffstats
path: root/src/file_psb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_psb.c')
-rw-r--r--src/file_psb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_psb.c b/src/file_psb.c
index 6bd4ea3..6e91e71 100644
--- a/src/file_psb.c
+++ b/src/file_psb.c
@@ -50,6 +50,7 @@ const file_hint_t file_hint_psb= {
};
static uint64_t psb_image_data_size_max=0;
+
struct psb_file_header
{
char signature[4];
@@ -60,7 +61,7 @@ struct psb_file_header
uint32_t width; /* max of 300,000 */
uint16_t depth; /* 1, 8, 16 or 32 */
uint16_t color_mode; /* Bitmap = 0; Grayscale = 1; Indexed = 2; RGB = 3; CMYK = 4; Multichannel = 7; Duotone = 8; Lab = 9 */
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
static int header_check_psb(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{