From 3bbfd0c0996e1db310cc2b72cffaf310a2adf6fb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 16 Nov 2018 23:01:40 -0800 Subject: Fix compilation with MSVC --- native-tools/bsincgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native-tools/bsincgen.c') diff --git a/native-tools/bsincgen.c b/native-tools/bsincgen.c index 4e85135b..89f9f378 100644 --- a/native-tools/bsincgen.c +++ b/native-tools/bsincgen.c @@ -261,7 +261,7 @@ static void BsiGenerateTables(FILE *output, const char *tabname, const double re " * width) suffers to reduce the CPU cost. The bandlimiting will cut all sound\n" " * after downsampling by ~%.2f octaves.\n" " */\n" -"alignas(16) constexpr float %s_tab[%d] = {\n", +"alignas(16) static constexpr float %s_tab[%d] = {\n", order, (((order%100)/10) == 1) ? "th" : ((order%10) == 1) ? "st" : ((order%10) == 2) ? "nd" : @@ -290,7 +290,7 @@ static void BsiGenerateTables(FILE *output, const char *tabname, const double re fprintf(output, "\n"); } } - fprintf(output, "};\nconstexpr BSincTable %s = {\n", tabname); + fprintf(output, "};\nconst BSincTable %s = {\n", tabname); /* The scaleBase is calculated from the Kaiser window transition width. It represents the absolute limit to the filter before it fully cuts -- cgit v1.2.3