From a798cd3a8dfe752139db2163b998ca1b405ac372 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sun, 4 May 2014 14:29:26 +0000 Subject: Cleanup. --- src/htsinthash.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/htsinthash.c b/src/htsinthash.c index eeb6680..12ce6b1 100644 --- a/src/htsinthash.c +++ b/src/htsinthash.c @@ -189,10 +189,20 @@ static void inthash_fail(const char* exp, const char* file, int line) { abort(); } #define inthash_assert(EXP) (void)( (EXP) || (inthash_fail(#EXP, __FILE__, __LINE__), 0) ) +#endif + +/* Compiler-specific. */ #ifndef HTS_PRINTF_FUN +#ifdef __GNUC__ +#define HTS_PRINTF_FUN(fmt, arg) __attribute__ ((format (printf, fmt, arg))) +#else #define HTS_PRINTF_FUN(FMT, ARGS) #endif +#endif #ifndef HTS_INLINE +#ifdef __GNUC__ +#define HTS_INLINE __inline__ +#else #define HTS_INLINE #endif #endif -- cgit v1.2.3