-typedef void (*TIFFErrorHandler)(const char*, const char*, va_list);
-typedef tsize_t (*TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t);
-typedef toff_t (*TIFFSeekProc)(thandle_t, toff_t, int);
-typedef int (*TIFFCloseProc)(thandle_t);
-typedef toff_t (*TIFFSizeProc)(thandle_t);
-typedef int (*TIFFMapFileProc)(thandle_t, tdata_t*, toff_t*);
-typedef void (*TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t);
-typedef void (*TIFFExtendProc)(TIFF*);
+typedef void (LINKAGEMODE *TIFFErrorHandler)(const char*, const char*, va_list);
+typedef tsize_t (LINKAGEMODE *TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t);
+typedef toff_t (LINKAGEMODE *TIFFSeekProc)(thandle_t, toff_t, int);
+typedef int (LINKAGEMODE *TIFFCloseProc)(thandle_t);
+typedef toff_t (LINKAGEMODE *TIFFSizeProc)(thandle_t);
+typedef int (LINKAGEMODE *TIFFMapFileProc)(thandle_t, tdata_t*, toff_t*);
+typedef void (LINKAGEMODE *TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t);
+typedef void (LINKAGEMODE *TIFFExtendProc)(TIFF*);