(Windows) Buildfixes - use fseek for MSVC 2003 and earlier

This commit is contained in:
twinaphex 2018-02-17 19:11:49 +01:00
parent dcf7ae855e
commit 7acd4b1847
3 changed files with 12 additions and 3 deletions

View File

@ -1647,8 +1647,15 @@ static void d3d8_set_menu_texture_enable(void *data,
d3d->menu->fullscreen = full_screen;
}
struct d3d8_texture_info
{
void *userdata;
void *data;
enum texture_filter_type type;
};
static void d3d8_video_texture_load_d3d(
struct d3d9_texture_info *info,
struct d3d8_texture_info *info,
uintptr_t *id)
{
D3DLOCKED_RECT d3dlr;
@ -1696,8 +1703,8 @@ static int d3d8_video_texture_load_wrap_d3d(void *data)
static uintptr_t d3d8_load_texture(void *video_data, void *data,
bool threaded, enum texture_filter_type filter_type)
{
uintptr_t id = 0;
struct d3d8_texture_info info;
uintptr_t id = 0;
info.userdata = video_data;
info.data = data;

View File

@ -123,7 +123,7 @@ int64_t retro_vfs_file_seek_internal(libretro_vfs_implementation_file *stream, i
/* VC2005 and up have a special 64-bit fseek */
#ifdef ATLEAST_VC2005
return _fseeki64(stream->fp, offset, whence);
#elif defined(__CELLOS_LV2__)
#elif defined(__CELLOS_LV2__) || defined(_MSC_VER) && _MSC_VER <= 1310
return fseek(stream->fp, (long)offset, whence);
#else
return fseeko(stream->fp, (off_t)offset, whence);

View File

@ -319,6 +319,8 @@ bool menu_shader_manager_set_preset(void *data,
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
return true;
#else
return false;
#endif
}