path: root/src/file_tiff.h
diff options
authorChristophe Grenier <>2015-04-11 14:23:16 +0200
committerChristophe Grenier <>2015-04-11 14:23:16 +0200
commit67054372873f2ed5414da7fff1cb5744148289d6 (patch)
treea8cd9501bcfc1e1efec8ca6603e7f11b0ad2ec0c /src/file_tiff.h
parentefc94ee87ac3b4e3ecf4fb3ab4adac2ef0a6278f (diff)
add gcc_struct attribute to all __packed__ structure
do not use fseeko() with mingw32 gcc compiler
Diffstat (limited to 'src/file_tiff.h')
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 */
-#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);