(MSVC) Build fixes

This commit is contained in:
twinaphex 2015-01-12 22:47:12 +01:00
parent 327d15b7f2
commit 6cdaa4e282
8 changed files with 15 additions and 15 deletions

View File

@ -201,7 +201,7 @@ void find_audio_driver(void)
{
int i = find_driver_index("audio_driver", g_settings.audio.driver);
if (i >= 0)
driver.audio = audio_driver_find_handle(i);
driver.audio = (const audio_driver_t*)audio_driver_find_handle(i);
else
{
unsigned d;
@ -212,7 +212,7 @@ void find_audio_driver(void)
RARCH_LOG_OUTPUT("\t%s\n", audio_driver_find_ident(d));
RARCH_WARN("Going to default to first audio driver...\n");
driver.audio = audio_driver_find_handle(0);
driver.audio = (const audio_driver_t*)audio_driver_find_handle(0);
if (!driver.audio)
rarch_fail(1, "find_audio_driver()");

View File

@ -36,7 +36,7 @@ static void *xa_init(const char *device, unsigned rate, unsigned latency)
if (latency < 8)
latency = 8; /* Do not allow shenanigans. */
xa_t *xa = (xa_t*)calloc(1, sizeof(*xa));
xa = (xa_t*)calloc(1, sizeof(*xa));
if (!xa)
return NULL;

View File

@ -107,7 +107,7 @@ void find_camera_driver(void)
{
int i = find_driver_index("camera_driver", g_settings.camera.driver);
if (i >= 0)
driver.camera = camera_driver_find_handle(i);
driver.camera = (const camera_driver_t*)camera_driver_find_handle(i);
else
{
unsigned d;
@ -119,7 +119,7 @@ void find_camera_driver(void)
RARCH_WARN("Going to default to first camera driver...\n");
driver.camera = camera_driver_find_handle(0);
driver.camera = (const camera_driver_t*)camera_driver_find_handle(0);
if (!driver.camera)
rarch_fail(1, "find_camera_driver()");

View File

@ -149,7 +149,7 @@ void find_video_driver(void)
i = find_driver_index("video_driver", g_settings.video.driver);
if (i >= 0)
driver.video = video_driver_find_handle(i);
driver.video = (const video_driver_t*)video_driver_find_handle(i);
else
{
unsigned d;
@ -160,7 +160,7 @@ void find_video_driver(void)
RARCH_LOG_OUTPUT("\t%s\n", video_driver_find_ident(d));
RARCH_WARN("Going to default to first video driver...\n");
driver.video = video_driver_find_handle(0);
driver.video = (const video_driver_t*)video_driver_find_handle(0);
if (!driver.video)
rarch_fail(1, "find_video_driver()");

View File

@ -136,7 +136,7 @@ void find_input_driver(void)
{
int i = find_driver_index("input_driver", g_settings.input.driver);
if (i >= 0)
driver.input = input_driver_find_handle(i);
driver.input = (const input_driver_t*)input_driver_find_handle(i);
else
{
unsigned d;
@ -147,7 +147,7 @@ void find_input_driver(void)
RARCH_LOG_OUTPUT("\t%s\n", input_driver_find_ident(d));
RARCH_WARN("Going to default to first input driver...\n");
driver.input = input_driver_find_handle(0);
driver.input = (const input_driver_t*)input_driver_find_handle(0);
if (!driver.input)
rarch_fail(1, "find_input_driver()");

View File

@ -103,7 +103,7 @@ void find_location_driver(void)
{
int i = find_driver_index("location_driver", g_settings.location.driver);
if (i >= 0)
driver.location = location_driver_find_handle(i);
driver.location = (const location_driver_t*)location_driver_find_handle(i);
else
{
unsigned d;
@ -115,7 +115,7 @@ void find_location_driver(void)
RARCH_WARN("Going to default to first location driver...\n");
driver.location = location_driver_find_handle(0);
driver.location = (const location_driver_t*)location_driver_find_handle(0);
if (!driver.location)
rarch_fail(1, "find_location_driver()");

View File

@ -116,7 +116,7 @@ void find_menu_driver(void)
{
int i = find_driver_index("menu_driver", g_settings.menu.driver);
if (i >= 0)
driver.menu_ctx = menu_driver_find_handle(i);
driver.menu_ctx = (const menu_ctx_driver_t*)menu_driver_find_handle(i);
else
{
unsigned d;
@ -127,7 +127,7 @@ void find_menu_driver(void)
RARCH_LOG_OUTPUT("\t%s\n", menu_driver_find_ident(d));
RARCH_WARN("Going to default to first menu driver...\n");
driver.menu_ctx = menu_driver_find_handle(0);
driver.menu_ctx = (const menu_ctx_driver_t*)menu_driver_find_handle(0);
if (!driver.menu_ctx)
rarch_fail(1, "find_menu_driver()");

View File

@ -103,7 +103,7 @@ void find_osk_driver(void)
{
int i = find_driver_index("osk_driver", g_settings.osk.driver);
if (i >= 0)
driver.osk = osk_driver_find_handle(i);
driver.osk = (const input_osk_driver_t*)osk_driver_find_handle(i);
else
{
unsigned d;
@ -115,7 +115,7 @@ void find_osk_driver(void)
RARCH_WARN("Going to default to first OSK driver...\n");
driver.osk = osk_driver_find_handle(0);
driver.osk = (const input_osk_driver_t*)osk_driver_find_handle(0);
if (!driver.osk)
rarch_fail(1, "find_osk_driver()");