Merge branch 'fix_221' into 'master'
tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221) Closes #221 See merge request libtiff/libtiff!173
This commit is contained in:
commit
39d6c91ffd
@ -261,8 +261,10 @@ typedef struct {
|
|||||||
#define LOGLUV_PUBLIC 1
|
#define LOGLUV_PUBLIC 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__GNUC__) && !defined(__attribute__)
|
#if defined(__GNUC__) || defined(__attribute__)
|
||||||
# define __attribute__(x) /*nothing*/
|
# define TIFF_ATTRIBUTE(x) __attribute__(x)
|
||||||
|
#else
|
||||||
|
# define TIFF_ATTRIBUTE(x) /*nothing*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(c_plusplus) || defined(__cplusplus)
|
#if defined(c_plusplus) || defined(__cplusplus)
|
||||||
@ -452,10 +454,10 @@ extern TIFF* TIFFClientOpen(const char*, const char*,
|
|||||||
TIFFMapFileProc, TIFFUnmapFileProc);
|
TIFFMapFileProc, TIFFUnmapFileProc);
|
||||||
extern const char* TIFFFileName(TIFF*);
|
extern const char* TIFFFileName(TIFF*);
|
||||||
extern const char* TIFFSetFileName(TIFF*, const char *);
|
extern const char* TIFFSetFileName(TIFF*, const char *);
|
||||||
extern void TIFFError(const char*, const char*, ...) __attribute__((__format__ (__printf__,2,3)));
|
extern void TIFFError(const char*, const char*, ...) TIFF_ATTRIBUTE((__format__ (__printf__,2,3)));
|
||||||
extern void TIFFErrorExt(thandle_t, const char*, const char*, ...) __attribute__((__format__ (__printf__,3,4)));
|
extern void TIFFErrorExt(thandle_t, const char*, const char*, ...) TIFF_ATTRIBUTE((__format__ (__printf__,3,4)));
|
||||||
extern void TIFFWarning(const char*, const char*, ...) __attribute__((__format__ (__printf__,2,3)));
|
extern void TIFFWarning(const char*, const char*, ...) TIFF_ATTRIBUTE((__format__ (__printf__,2,3)));
|
||||||
extern void TIFFWarningExt(thandle_t, const char*, const char*, ...) __attribute__((__format__ (__printf__,3,4)));
|
extern void TIFFWarningExt(thandle_t, const char*, const char*, ...) TIFF_ATTRIBUTE((__format__ (__printf__,3,4)));
|
||||||
extern TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler);
|
extern TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler);
|
||||||
extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt);
|
extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt);
|
||||||
extern TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler);
|
extern TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler);
|
||||||
|
Loading…
Reference in New Issue
Block a user