From: zhanxw Date: Sat, 30 Nov 2013 04:37:10 +0000 (-0500) Subject: Update ksort.h X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=831b2f89d19e59cbd6f849d8143a5022d716298a;p=klib.git Update ksort.h From my personal communication, I got this suggestion: using inline incorrectly: see the C99 standard ยง6.7.4. Please change to static inline (and report upstream). This also caused some clang compilation problem. --- diff --git a/ksort.h b/ksort.h index 0b15efe..4da7a13 100644 --- a/ksort.h +++ b/ksort.h @@ -147,7 +147,7 @@ typedef struct { tmp = *l; *l = l[i]; l[i] = tmp; ks_heapadjust_##name(0, i, l); \ } \ } \ - inline void __ks_insertsort_##name(type_t *s, type_t *t) \ + static inline void __ks_insertsort_##name(type_t *s, type_t *t) \ { \ type_t *i, *j, swap_tmp; \ for (i = s + 1; i < t; ++i) \