(GL) Fix mixe code declaration (for C89_BUILD)

This commit is contained in:
twinaphex 2015-09-21 11:50:02 +02:00
parent ab325df65d
commit b9ba75403e
3 changed files with 9 additions and 1 deletions

View File

@ -57,6 +57,10 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
ifeq ($(C89_BUILD), 1)
CFLAGS += -DC89_BUILD
endif
CFLAGS += -I./libretro-common/include
# Switches

View File

@ -1633,6 +1633,7 @@ static bool gl_frame(void *data, const void *frame,
unsigned pitch, const char *msg)
{
unsigned width, height;
struct gfx_tex_info feedback_info;
static struct retro_perf_counter frame_run = {0};
gl_t *gl = (gl_t*)data;
driver_t *driver = driver_get_ptr();
@ -1742,7 +1743,8 @@ static bool gl_frame(void *data, const void *frame,
gl->tex_info.tex_size[0] = gl->tex_w;
gl->tex_info.tex_size[1] = gl->tex_h;
struct gfx_tex_info feedback_info = gl->tex_info;
feedback_info = gl->tex_info;
if (gl->fbo_feedback_enable)
{
const struct gfx_fbo_rect *rect = &gl->fbo_rect[gl->fbo_feedback_pass];

View File

@ -45,9 +45,11 @@
#include "../input/drivers_joypad/parport_joypad.c"
#endif
#ifndef C89_BUILD
#if defined(HAVE_SDL) || defined(HAVE_SDL2)
#include "../input/drivers_joypad/sdl_joypad.c"
#endif
#endif
#include "../libretro-common/queues/fifo_buffer.c"
#include "../libretro-common/file/config_file.c"