aboutsummaryrefslogtreecommitdiffstats
path: root/native-tools/bsincgen.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-16 23:01:40 -0800
committerChris Robinson <[email protected]>2018-11-16 23:01:40 -0800
commit3bbfd0c0996e1db310cc2b72cffaf310a2adf6fb (patch)
tree02cd8dd3c82ee3f785faa09a8b926d6eb34628b5 /native-tools/bsincgen.c
parent1bd40d94345ac263887b9a83c765ee46dc701799 (diff)
Fix compilation with MSVC
Diffstat (limited to 'native-tools/bsincgen.c')
-rw-r--r--native-tools/bsincgen.c4
1 files changed, 2 insertions, 2 deletions
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