about summary refs log tree commit diff
path: root/include/afl-fuzz.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-06-24 01:37:09 +0200
committerGitHub <noreply@github.com>2024-06-24 01:37:09 +0200
commite80bd2d30cdfbaa2fca48f7ee96ca114ddb7d74a (patch)
tree2534f0f9524dbe69254441d693e41816bf850aab /include/afl-fuzz.h
parent540d741df0541e0e41e600672245ca1e867c5ef4 (diff)
parentac5815d994fe8ff151e0f13088891acc506662ed (diff)
downloadafl++-e80bd2d30cdfbaa2fca48f7ee96ca114ddb7d74a.tar.gz
Merge pull request #2133 from visitorckw/optimize-bit-counting
Optimize bit counting using __builtin_popcount
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r--include/afl-fuzz.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 6d03a74c..45600698 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -116,6 +116,10 @@
   #include <TargetConditionals.h>
 #endif
 
+#ifndef __has_builtin
+  #define __has_builtin(x) 0
+#endif
+
 #undef LIST_FOREACH                                 /* clashes with FreeBSD */
 #include "list.h"
 #ifndef SIMPLE_FILES