mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(Menu) Add missing extern C namespaces for C++ builds
This commit is contained in:
parent
b1eb0e6493
commit
f1511e76f1
7 changed files with 56 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
|||
|
||||
#include "../../settings_data.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int menu_action_setting_apply(rarch_setting_t *setting);
|
||||
|
||||
int menu_action_setting_boolean(
|
||||
|
@ -48,4 +52,8 @@ int menu_action_setting_set(unsigned id, const char *label,
|
|||
int menu_action_handle_setting(rarch_setting_t *setting,
|
||||
unsigned id, const char *label, unsigned action);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef float (*easingFunc)(float, float, float, float);
|
||||
typedef void (*tweenCallback) (void);
|
||||
|
||||
|
@ -108,4 +112,8 @@ float inOutBounce(float t, float b, float c, float d);
|
|||
|
||||
float outInBounce(float t, float b, float c, float d);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "../../file_list.h"
|
||||
#include "../../settings_data.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void menu_entries_push(file_list_t *list,
|
||||
const char *path, const char *label, unsigned type,
|
||||
size_t directory_ptr);
|
||||
|
@ -46,4 +50,8 @@ int menu_entries_set_current_path_selection(
|
|||
const char *label, unsigned type,
|
||||
unsigned action);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,8 +18,16 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void menu_entries_cbs_init(void *data,
|
||||
const char *path, const char *label,
|
||||
unsigned type, size_t index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
|
||||
#include "../../input/keyboard_line.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void menu_key_event(bool down, unsigned keycode, uint32_t character,
|
||||
uint16_t key_modifiers);
|
||||
|
||||
|
@ -42,4 +46,8 @@ int menu_input_bind_iterate(void *data);
|
|||
|
||||
int menu_input_bind_iterate_keyboard(void *data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
|
||||
#include "menu_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void menu_clear_navigation(menu_handle_t *menu);
|
||||
|
||||
void menu_decrement_navigation(menu_handle_t *menu);
|
||||
|
@ -33,4 +37,8 @@ void menu_descend_alphabet(menu_handle_t *menu, size_t *ptr_out);
|
|||
|
||||
void menu_ascend_alphabet(menu_handle_t *menu, size_t *ptr_out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
|
||||
#include "../../gfx/shader/shader_context.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void menu_shader_manager_init(void *data);
|
||||
|
||||
void menu_shader_manager_set_preset(struct gfx_shader *shader,
|
||||
|
@ -43,4 +47,8 @@ void menu_shader_manager_get_str(struct gfx_shader *shader,
|
|||
|
||||
void menu_shader_manager_apply_changes(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue