Use alternative fix to the issue in aiff_extract_codebook.c

This commit is contained in:
Xenthio 2021-11-30 12:11:37 +11:00
parent aae9ed41b6
commit 26bc02a5b8
2 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,6 @@
CC := gcc
CXX := g++
CFLAGS := -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s
ifeq ($(shell uname),Darwin)
CFLAGS += -Wno-error=implicit-function-declaration
endif
LDFLAGS := -lm
PROGRAMS := n64graphics n64graphics_ci mio0 n64cksum textconv patch_libultra_math aifc_decode aiff_extract_codebook vadpcm_enc tabledesign extract_data_for_mio skyconv

View File

@ -26,6 +26,11 @@ typedef unsigned int u32;
#define NORETURN __attribute__((noreturn))
#define UNUSED __attribute__((unused))
#ifdef __APPLE__
// even with -std=gnu99 vsnprintf seems to not be defined in stdio.h, why?
extern int vsnprintf(char * __restrict, size_t, const char * __restrict, va_list);
#endif
typedef struct
{
u32 start;