diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-04 14:29:26 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-04 14:29:26 +0000 |
commit | a798cd3a8dfe752139db2163b998ca1b405ac372 (patch) | |
tree | c10eb1531af7d6f728947083cc00387163df6a98 /src | |
parent | d2435b1b5ee85b572311bfe3d6ab17f995b505f1 (diff) |
Cleanup.
Diffstat (limited to 'src')
-rw-r--r-- | src/htsinthash.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 |