diff options
Diffstat (limited to 'src/htsglobal.h')
-rw-r--r-- | src/htsglobal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/htsglobal.h b/src/htsglobal.h index 3524f27..7c89ef6 100644 --- a/src/htsglobal.h +++ b/src/htsglobal.h @@ -57,6 +57,19 @@ Please visit our Website: http://www.httrack.com #endif #endif +/* GCC extension */ +#ifndef HTS_UNUSED +#ifdef __GNUC__ +#define HTS_UNUSED __attribute__ ((unused)) +#define HTS_STATIC static __attribute__ ((unused)) +#define HTS_PRINTF_FUN(fmt, arg) __attribute__ ((format (printf, fmt, arg))) +#else +#define HTS_UNUSED +#define HTS_STATIC static +#define HTS_PRINTF_FUN(fmt, arg) +#endif +#endif + // config.h #ifdef _WIN32 |