Fix CXX_BUILD errors.

This commit is contained in:
orbea 2019-01-13 11:43:31 -08:00
parent 63ba60ae1a
commit ff2e3bbbce
2 changed files with 3 additions and 3 deletions

View File

@ -358,7 +358,7 @@ bool egl_init_context(egl_ctx_data_t *egl,
return false;
}
configs = malloc(*count * sizeof(*configs));
configs = (EGLConfig*)malloc(*count * sizeof(*configs));
if (!configs)
return false;

View File

@ -543,8 +543,8 @@ static void udev_joypad_poll(void)
/* Used for sorting devnodes to appear in the correct order */
static int sort_devnodes(const void *a, const void *b)
{
const struct joypad_udev_entry *aa = a;
const struct joypad_udev_entry *bb = b;
const struct joypad_udev_entry *aa = (const struct joypad_udev_entry*)a;
const struct joypad_udev_entry *bb = (const struct joypad_udev_entry*)b;
return strcmp(aa->devnode, bb->devnode);
}