Some buildfixes

This commit is contained in:
twinaphex 2020-06-30 08:37:41 +02:00
parent 0a1775feb2
commit 6fcb97ee53
3 changed files with 13 additions and 5 deletions

View File

@ -177,6 +177,16 @@ enum retro_language win32_get_retro_lang_from_langid(unsigned short langid)
return RETRO_LANGUAGE_ENGLISH;
}
#endif
#else
unsigned short win32_get_langid_from_retro_lang(enum retro_language lang)
{
return 0x409; /* fallback to US English */
}
enum retro_language win32_get_retro_lang_from_langid(unsigned short langid)
{
return RETRO_LANGUAGE_ENGLISH;
}
#endif
static void gfx_dwm_shutdown(void)

View File

@ -19,12 +19,8 @@
#ifndef _PLATFORM_WIN32_H
#define _PLATFORM_WIN32_H
#if defined(HAVE_LANGEXTRA) && !defined(_XBOX)
#if (defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0500) || !defined(_MSC_VER)
unsigned short win32_get_langid_from_retro_lang(enum retro_language lang);
enum retro_language win32_get_retro_lang_from_langid(unsigned short langid);
#endif
#endif
#endif

View File

@ -26,6 +26,7 @@
#include <boolean.h>
#include <retro_common_api.h>
#include <string/stdstring.h>
#include <formats/image.h>
#include <gfx/math/matrix_4x4.h>
#include "../retroarch.h"
@ -380,7 +381,8 @@ bool gfx_display_reset_textures_list(
bool gfx_display_reset_textures_list_buffer(
uintptr_t *item, enum texture_filter_type filter_type,
void* buffer, unsigned buffer_len, enum image_type_enum image_type,
void* buffer, unsigned buffer_len,
enum image_type_enum image_type,
unsigned *width, unsigned *height);
/* Returns the OSK key at a given position */