diff options
author | Brian Waters <brian@brianmwaters.net> | 2019-11-11 01:16:11 -0500 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-11-11 14:26:44 +0100 |
commit | fc67c92f0a739b2c998689f4bda155eb14700a78 (patch) | |
tree | 95dd8c986a62a75a2427d2656c5876d6fdcf2d8e | |
parent | dcd73fd54992430938ced73872b983bffd770b11 (diff) |
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.
-rw-r--r-- | lib/optimize_c.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optimize_c.cc b/lib/optimize_c.cc index 2cad998..6c8b706 100644 --- a/lib/optimize_c.cc +++ b/lib/optimize_c.cc @@ -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 |