diff options
Diffstat (limited to 'src/file_tiff.h')
-rw-r--r-- | src/file_tiff.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/file_tiff.h b/src/file_tiff.h index db5fe871..21fa5fdf 100644 --- a/src/file_tiff.h +++ b/src/file_tiff.h @@ -60,12 +60,10 @@ typedef struct { } TIFFDirEntry; /* Work around a gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 */ -#pragma pack(1) struct ifd_header { uint16_t nbr_fields; TIFFDirEntry ifd; -} __attribute__ ((__packed__)); -#pragma pack() +} __attribute__ ((gcc_struct, __packed__)); time_t get_date_from_tiff_header(const TIFFHeader *tiff, const unsigned int tiff_size); const char *find_tag_from_tiff_header(const TIFFHeader *tiff, const unsigned int tiff_size, const unsigned int tag, const char **potential_error); |