summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/htsinthash.c10
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