Force gnu99 since it's currently required

Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
Mahyar Koshkouei 2018-02-11 20:29:57 +00:00
parent 5e06e100b2
commit 2cea3d17b5
2 changed files with 5 additions and 10 deletions

View File

@ -98,12 +98,6 @@ ifneq (,$(findstring gles,$(platform)))
CFLAGS += -DHAVE_OPENGLES
endif
ifneq (,$(findstring qnx,$(platform)))
CFLAGS += -Wc,-std=c99
else
CFLAGS += -std=gnu99
endif
# Locale support should be enabled by default, as it's most common.
ifneq ($(locale),false)
CFLAGS += -DHAVE_LOCALE
@ -119,7 +113,7 @@ endif
OBJECTS := mpv-libretro.o
LDFLAGS += -lmpv -ldl
CFLAGS += -Wall -pedantic
CFLAGS += -Wall -pedantic -std=gnu99
all: $(TARGET)

View File

@ -123,9 +123,10 @@ static void *get_proc_address_mpv(void *fn_ctx, const char *name)
void *proc_addr = (void *) hw_render.get_proc_address(name);
#pragma GCC diagnostic pop
// EGL 1.4 (supported by the RPI firmware) does not necessarily return
// function pointers for core functions.
if (!proc_addr) {
/* EGL 1.4 (supported by the RPI firmware) does not necessarily return
* function pointers for core functions.
*/
if (!proc_addr) {
void *h = dlopen("/opt/vc/lib/libGLESv2.so", RTLD_LAZY);
if (!h)