make gcc_plugin compilable for gcc 3.6.0

This commit is contained in:
hexcoder-
2022-09-23 23:19:10 +02:00
parent 6ed40d5a08
commit ed54532f29
4 changed files with 22 additions and 12 deletions

View File

@ -498,3 +498,10 @@ struct afl_base_pass : gimple_opt_pass {
} // namespace
// compatibility for older gcc versions
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \
60200 /* >= version 6.2.0 */
#define gimple gimple *
#else
#define gimple gimple
#endif