compiler.h: Force compiler to inline inline functions
authorEric Biggers <ebiggers3@gmail.com>
Sat, 18 May 2013 02:19:09 +0000 (21:19 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 18 May 2013 02:19:09 +0000 (21:19 -0500)
include/wimlib/compiler.h

index 78a7bef5b6a33adddce01fb336170ca39cdda8bd..d32d092b964dfda938aa82cd4343edb085e9e103 100644 (file)
@@ -21,6 +21,7 @@
 #      define _aligned_attribute(size) __attribute__((aligned(size)))
 #      define likely(x) __builtin_expect(!!(x), 1)
 #      define unlikely(x) __builtin_expect(!!(x), 0)
+#      define inline inline __attribute__((always_inline))
 #else
 #      define WIMLIBAPI
 #      define _always_inline_attribute inline