Fixing function/variable conflict errors

How to fix errors which appear during C/C++ fuzz test compilation and are caused by conflicts in included headers

Problem description

When you use the "fuzz this function" functionality of the CI Fuzz VS Code extension,your fuzz test source code will by default include header files needed to compile it.

It can happen that in your project, there will be some conflicts in function or variable declarations in those headers (and others that are included recursively). Example:

If this happens, an easy fix is to declare the function under test as external, and remove the offending includes. Example:

Disclaimer: This is not a useful fuzz test, it only serves to demonstrate how to fix this particular problem.