summaryrefslogtreecommitdiff
path: root/src/html/houdini.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/houdini.h')
-rw-r--r--src/html/houdini.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/html/houdini.h b/src/html/houdini.h
index b8ed0d9..9e1200e 100644
--- a/src/html/houdini.h
+++ b/src/html/houdini.h
@@ -6,10 +6,16 @@ extern "C" {
#endif
#include <stdint.h>
+#include "config.h"
#include "buffer.h"
-#define likely(x) __builtin_expect((x),1)
-#define unlikely(x) __builtin_expect((x),0)
+#ifdef HAVE___BUILTIN_EXPECT
+# define likely(x) __builtin_expect((x),1)
+# define unlikely(x) __builtin_expect((x),0)
+#else
+# define likely(x) (x)
+# define unlikely(x) (x)
+#endif
#ifdef HOUDINI_USE_LOCALE
# define _isxdigit(c) isxdigit(c)