From cf51fc1306bc3d484888ff2e8694e44deeb4cd89 Mon Sep 17 00:00:00 2001 From: Nym Seddon Date: Wed, 30 Dec 2020 23:21:28 +0000 Subject: [PATCH] Fix conditional __AFL_LOOP definition __AFL_LOOP function definition conflicts with macro definition. Conditionally add __AFL_LOOP function definition only when macro is not defined. Resolves #7230 --- tests/fuzz/fuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fuzz/fuzzer.cpp b/tests/fuzz/fuzzer.cpp index eaaef5aa5..7602db93a 100644 --- a/tests/fuzz/fuzzer.cpp +++ b/tests/fuzz/fuzzer.cpp @@ -35,7 +35,7 @@ #ifndef OSSFUZZ -#if (!defined(__clang__) || (__clang__ < 5)) +#ifndef __AFL_LOOP static int __AFL_LOOP(int) { static int once = 0;