aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-10-19 08:01:38 -0700
committerChris Robinson <[email protected]>2020-10-19 08:01:38 -0700
commitada92b058a6bde647af6f445131729900490142a (patch)
tree70d45feadb03dfcb2605c23266946fbb930e12f1 /alc
parentcdc15a4783e61dd1a838f25dd668e19b28449b19 (diff)
Workaround a GCC 5 issue
Diffstat (limited to 'alc')
-rw-r--r--alc/bsinc_tables.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/alc/bsinc_tables.cpp b/alc/bsinc_tables.cpp
index 6052e1b1..92f4657c 100644
--- a/alc/bsinc_tables.cpp
+++ b/alc/bsinc_tables.cpp
@@ -101,6 +101,12 @@ constexpr double CalcKaiserBeta(const double rejection)
return 0.0;
}
+/* NOTE: GCC 5 has an issue with BSincHeader objects being in an anonymous
+ * namespace while also being used as non-type template parameters.
+ */
+#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 6
+} // namespace
+#endif
struct BSincHeader {
double width{};
@@ -140,6 +146,9 @@ struct BSincHeader {
constexpr BSincHeader bsinc12_hdr{60, 11};
constexpr BSincHeader bsinc24_hdr{60, 23};
+#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 6
+namespace {
+#endif
/* FIXME: This should be constexpr, but the temporary filter arrays are too
* big. This requires using heap space, which is not allowed in a constexpr