Fix MSVC 2010 build.

This commit is contained in:
Themaister 2013-04-21 10:05:12 +02:00
parent b3eca2bb68
commit bb36aecadb
5 changed files with 34 additions and 2 deletions

View File

@ -23,6 +23,10 @@
#include <stdint.h>
#include "boolean.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct rarch_cmd rarch_cmd_t;
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);
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -20,6 +20,10 @@
#include "libretro.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
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);
@ -43,5 +47,9 @@ void core_option_prev(core_option_manager_t *opt, size_t index);
// Sets default val for an option.
void core_option_set_default(core_option_manager_t *opt, size_t index);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -34,6 +34,10 @@
#include "command.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#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_MAX_RATIO 16
@ -512,5 +516,9 @@ extern const input_driver_t input_null;
#include "driver_funcs.h"
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1419,7 +1419,7 @@ static int rgui_viewport_iterate(rgui_handle_t *rgui, rgui_action_t action)
if (menu_type == RGUI_SETTINGS_CUSTOM_VIEWPORT)
{
custom->y += stride_y;
if (custom->height >= stride_y)
if (custom->height >= (unsigned)stride_y)
custom->height -= stride_y;
}
else
@ -1797,7 +1797,7 @@ static bool directory_parse(rgui_handle_t *rgui, const char *directory, unsigned
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
if (rgui->trigger_state & (1ULL << DEVICE_NAV_UP))

View File

@ -19,6 +19,10 @@
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct msg_queue msg_queue_t;
// 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);
#ifdef __cplusplus
}
#endif
#endif