mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
CXX_BUILD - Fix some undefined reference linker errors
This commit is contained in:
parent
9ed2ba8412
commit
c6cc3b8d90
@ -16,6 +16,10 @@
|
|||||||
#ifndef RARCH_DSP_FILTER_H__
|
#ifndef RARCH_DSP_FILTER_H__
|
||||||
#define RARCH_DSP_FILTER_H__
|
#define RARCH_DSP_FILTER_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct rarch_dsp_filter rarch_dsp_filter_t;
|
typedef struct rarch_dsp_filter rarch_dsp_filter_t;
|
||||||
|
|
||||||
rarch_dsp_filter_t *rarch_dsp_filter_new(const char *filter_config,
|
rarch_dsp_filter_t *rarch_dsp_filter_new(const char *filter_config,
|
||||||
@ -36,5 +40,9 @@ struct rarch_dsp_data
|
|||||||
void rarch_dsp_filter_process(rarch_dsp_filter_t *dsp,
|
void rarch_dsp_filter_process(rarch_dsp_filter_t *dsp,
|
||||||
struct rarch_dsp_data *data);
|
struct rarch_dsp_data *data);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
#ifndef __RARCH_AUTOSAVE_H
|
#ifndef __RARCH_AUTOSAVE_H
|
||||||
#define __RARCH_AUTOSAVE_H
|
#define __RARCH_AUTOSAVE_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
typedef struct autosave autosave_t;
|
typedef struct autosave autosave_t;
|
||||||
@ -33,4 +37,8 @@ void lock_autosave(void);
|
|||||||
|
|
||||||
void unlock_autosave(void);
|
void unlock_autosave(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
8
cheats.h
8
cheats.h
@ -16,6 +16,10 @@
|
|||||||
#ifndef __RARCH_CHEATS_H
|
#ifndef __RARCH_CHEATS_H
|
||||||
#define __RARCH_CHEATS_H
|
#define __RARCH_CHEATS_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct cheat_manager cheat_manager_t;
|
typedef struct cheat_manager cheat_manager_t;
|
||||||
|
|
||||||
cheat_manager_t* cheat_manager_new(const char *path);
|
cheat_manager_t* cheat_manager_new(const char *path);
|
||||||
@ -28,4 +32,8 @@ void cheat_manager_index_prev(cheat_manager_t *handle);
|
|||||||
|
|
||||||
void cheat_manager_toggle(cheat_manager_t *handle);
|
void cheat_manager_toggle(cheat_manager_t *handle);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -16,14 +16,15 @@
|
|||||||
#ifndef INPUT_COMMON_H__
|
#ifndef INPUT_COMMON_H__
|
||||||
#define INPUT_COMMON_H__
|
#define INPUT_COMMON_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "input_context.h"
|
#include "input_context.h"
|
||||||
#include <file/config_file.h>
|
#include <file/config_file.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "../driver.h"
|
#include "../driver.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef uint64_t retro_input_t ;
|
typedef uint64_t retro_input_t ;
|
||||||
|
|
||||||
|
@ -23,10 +23,18 @@
|
|||||||
#ifndef __LIBRETRO_SDK_SCALER_FILTER_H__
|
#ifndef __LIBRETRO_SDK_SCALER_FILTER_H__
|
||||||
#define __LIBRETRO_SDK_SCALER_FILTER_H__
|
#define __LIBRETRO_SDK_SCALER_FILTER_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include <gfx/scaler/scaler.h>
|
#include <gfx/scaler/scaler.h>
|
||||||
|
|
||||||
bool scaler_gen_filter(struct scaler_ctx *ctx);
|
bool scaler_gen_filter(struct scaler_ctx *ctx);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
#ifndef __LIBRETRO_SDK_SCALER_H__
|
#ifndef __LIBRETRO_SDK_SCALER_H__
|
||||||
#define __LIBRETRO_SDK_SCALER_H__
|
#define __LIBRETRO_SDK_SCALER_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
@ -115,5 +119,9 @@ void scaler_ctx_scale(struct scaler_ctx *ctx,
|
|||||||
void *scaler_alloc(size_t elem_size, size_t size);
|
void *scaler_alloc(size_t elem_size, size_t size);
|
||||||
void scaler_free(void *ptr);
|
void scaler_free(void *ptr);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
8
movie.h
8
movie.h
@ -16,6 +16,10 @@
|
|||||||
#ifndef __RARCH_MOVIE_H
|
#ifndef __RARCH_MOVIE_H
|
||||||
#define __RARCH_MOVIE_H
|
#define __RARCH_MOVIE_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
@ -52,5 +56,9 @@ void bsv_movie_frame_rewind(bsv_movie_t *handle);
|
|||||||
|
|
||||||
void bsv_movie_free(bsv_movie_t *handle);
|
void bsv_movie_free(bsv_movie_t *handle);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
8
retro.h
8
retro.h
@ -18,6 +18,10 @@
|
|||||||
#ifndef _RETRO_IMPLEMENTATION_V1_H
|
#ifndef _RETRO_IMPLEMENTATION_V1_H
|
||||||
#define _RETRO_IMPLEMENTATION_V1_H
|
#define _RETRO_IMPLEMENTATION_V1_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "libretro.h"
|
#include "libretro.h"
|
||||||
|
|
||||||
typedef struct retro_callbacks
|
typedef struct retro_callbacks
|
||||||
@ -34,4 +38,8 @@ void retro_set_default_callbacks(void *data);
|
|||||||
void retro_set_rewind_callbacks(void);
|
void retro_set_rewind_callbacks(void);
|
||||||
void retro_flush_audio(const int16_t *data, size_t samples);
|
void retro_flush_audio(const int16_t *data, size_t samples);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
8
rewind.h
8
rewind.h
@ -16,6 +16,10 @@
|
|||||||
#ifndef __RARCH_REWIND_H
|
#ifndef __RARCH_REWIND_H
|
||||||
#define __RARCH_REWIND_H
|
#define __RARCH_REWIND_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
|
||||||
@ -34,4 +38,8 @@ void state_manager_push_do(state_manager_t *state);
|
|||||||
void state_manager_capacity(state_manager_t *state,
|
void state_manager_capacity(state_manager_t *state,
|
||||||
unsigned int *entries, size_t *bytes, bool *full);
|
unsigned int *entries, size_t *bytes, bool *full);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user