CXX_BUILD fixes

This commit is contained in:
twinaphex 2015-12-10 14:05:56 +01:00
parent 02fb8dd052
commit e1331fa6a5
3 changed files with 5 additions and 3 deletions

View File

@ -71,7 +71,7 @@ static void core_info_list_resolve_all_firmware(
{
unsigned count = 0;
core_info_t *info = (core_info_t*)&core_info_list->list[i];
config_file_t *config = info->config_data;
config_file_t *config = (config_file_t*)info->config_data;
if (!info || !config)
continue;

View File

@ -186,11 +186,13 @@ static void *gfx_ctx_glx_init(void *data)
int nelements, major, minor;
GLXFBConfig *fbcs = NULL;
gfx_ctx_glx_data_t *glx = (gfx_ctx_glx_data_t*)calloc(1, sizeof(gfx_ctx_glx_data_t));
#ifndef GL_DEBUG
const struct retro_hw_render_callback *hw_render =
(const struct retro_hw_render_callback*)video_driver_callback();
#endif
if (!glx)
return false;
return NULL;
XInitThreads();

View File

@ -189,7 +189,7 @@ static void gfx_ctx_wl_check_window(void *data, bool *quit,
(void)frame_count;
flush_wayland_fd(data);
flush_wayland_fd((gfx_ctx_wayland_data_t*)data);
new_width = *width;
new_height = *height;