Force gnu99 since it's currently required
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
parent
5e06e100b2
commit
2cea3d17b5
8
Makefile
8
Makefile
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue