mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Fix MSVC 2010 build.
This commit is contained in:
parent
b3eca2bb68
commit
bb36aecadb
@ -23,6 +23,10 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "boolean.h"
|
#include "boolean.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct rarch_cmd rarch_cmd_t;
|
typedef struct rarch_cmd rarch_cmd_t;
|
||||||
|
|
||||||
rarch_cmd_t *rarch_cmd_new(bool stdin_enable, bool network_enable, uint16_t port);
|
rarch_cmd_t *rarch_cmd_new(bool stdin_enable, bool network_enable, uint16_t port);
|
||||||
@ -36,5 +40,9 @@ bool rarch_cmd_get(rarch_cmd_t *handle, unsigned id);
|
|||||||
bool network_cmd_send(const char *cmd);
|
bool network_cmd_send(const char *cmd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
#include "libretro.h"
|
#include "libretro.h"
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct core_option_manager core_option_manager_t;
|
typedef struct core_option_manager core_option_manager_t;
|
||||||
|
|
||||||
core_option_manager_t *core_option_new(const char *conf_path, const struct retro_variable *vars);
|
core_option_manager_t *core_option_new(const char *conf_path, const struct retro_variable *vars);
|
||||||
@ -43,5 +47,9 @@ void core_option_prev(core_option_manager_t *opt, size_t index);
|
|||||||
// Sets default val for an option.
|
// Sets default val for an option.
|
||||||
void core_option_set_default(core_option_manager_t *opt, size_t index);
|
void core_option_set_default(core_option_manager_t *opt, size_t index);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
8
driver.h
8
driver.h
@ -34,6 +34,10 @@
|
|||||||
#include "command.h"
|
#include "command.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define AUDIO_CHUNK_SIZE_BLOCKING 512
|
#define AUDIO_CHUNK_SIZE_BLOCKING 512
|
||||||
#define AUDIO_CHUNK_SIZE_NONBLOCKING 2048 // So we don't get complete line-noise when fast-forwarding audio.
|
#define AUDIO_CHUNK_SIZE_NONBLOCKING 2048 // So we don't get complete line-noise when fast-forwarding audio.
|
||||||
#define AUDIO_MAX_RATIO 16
|
#define AUDIO_MAX_RATIO 16
|
||||||
@ -512,5 +516,9 @@ extern const input_driver_t input_null;
|
|||||||
|
|
||||||
#include "driver_funcs.h"
|
#include "driver_funcs.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1419,7 +1419,7 @@ static int rgui_viewport_iterate(rgui_handle_t *rgui, rgui_action_t action)
|
|||||||
if (menu_type == RGUI_SETTINGS_CUSTOM_VIEWPORT)
|
if (menu_type == RGUI_SETTINGS_CUSTOM_VIEWPORT)
|
||||||
{
|
{
|
||||||
custom->y += stride_y;
|
custom->y += stride_y;
|
||||||
if (custom->height >= stride_y)
|
if (custom->height >= (unsigned)stride_y)
|
||||||
custom->height -= stride_y;
|
custom->height -= stride_y;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1797,7 +1797,7 @@ static bool directory_parse(rgui_handle_t *rgui, const char *directory, unsigned
|
|||||||
|
|
||||||
int rgui_iterate(rgui_handle_t *rgui)
|
int rgui_iterate(rgui_handle_t *rgui)
|
||||||
{
|
{
|
||||||
uint64_t action = RGUI_ACTION_NOOP;
|
rgui_action_t action = RGUI_ACTION_NOOP;
|
||||||
|
|
||||||
// don't run anything first frame, only capture held inputs for old_input_state
|
// don't run anything first frame, only capture held inputs for old_input_state
|
||||||
if (rgui->trigger_state & (1ULL << DEVICE_NAV_UP))
|
if (rgui->trigger_state & (1ULL << DEVICE_NAV_UP))
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct msg_queue msg_queue_t;
|
typedef struct msg_queue msg_queue_t;
|
||||||
|
|
||||||
// Creates a message queue with maximum size different messages. Returns NULL if allocation error.
|
// Creates a message queue with maximum size different messages. Returns NULL if allocation error.
|
||||||
@ -35,4 +39,8 @@ void msg_queue_clear(msg_queue_t *queue);
|
|||||||
|
|
||||||
void msg_queue_free(msg_queue_t *queue);
|
void msg_queue_free(msg_queue_t *queue);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user