build gr-iqbal w/ clang

Clang doesn't automatically define the "complex" keyword like old versions of GCC apparently used to. Appending this little check enabled compiling gr-iqbal w/ Clang, which is now the default compiler on OpenBSD and I think FreeBSD too.
This commit is contained in:
Brian Waters 2019-11-11 01:16:11 -05:00 committed by Harald Welte
parent dcd73fd549
commit fc67c92f0a
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
__GNUC_PATCHLEVEL__ \
)
#if GCC_VERSION >= 40800
#if GCC_VERSION >= 40800 || defined(__clang__)
# define complex _Complex
# undef _GLIBCXX_HAVE_COMPLEX_H
#endif