Make the code C90-compliant

This commit is contained in:
Jean-Marc Valin 2023-05-17 04:09:04 -04:00
parent ebbf5721a2
commit 580614f062
7 changed files with 16 additions and 10 deletions

View file

@ -25,6 +25,10 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <math.h>
#include <stdio.h>
#include "freq.h"
@ -40,6 +44,10 @@ int main(void) {
file=fopen("lpcnet_tables.c", "wb");
fprintf(file, "/* The contents of this file was automatically generated by dump_lpcnet_tables.c*/\n\n");
fprintf(file, "#ifdef HAVE_CONFIG_H\n");
fprintf(file, "#include \"config.h\"\n");
fprintf(file, "#endif\n");
fprintf(file, "#include \"kiss_fft.h\"\n\n");
kfft = opus_fft_alloc_twiddles(WINDOW_SIZE, NULL, NULL, NULL, 0);
@ -93,4 +101,4 @@ int main(void) {
fclose(file);
return 0;
}
}