Skip to content

Commit

Permalink
(GL) Fix mixe code declaration (for C89_BUILD)
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Sep 21, 2015
1 parent ab325df commit b9ba754
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion gfx/drivers/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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];
Expand Down
2 changes: 2 additions & 0 deletions tools/retroarch-joyconfig-griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b9ba754

Please sign in to comment.