summaryrefslogtreecommitdiffstats
path: root/src/file_tiff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_tiff.h')
-rw-r--r--src/file_tiff.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/file_tiff.h b/src/file_tiff.h
index db5fe87..21fa5fd 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);