CXX_BUILD - Fix some undefined reference linker errors

This commit is contained in:
twinaphex 2014-11-29 21:18:45 +01:00
parent 9ed2ba8412
commit c6cc3b8d90
9 changed files with 68 additions and 3 deletions

View File

@ -16,6 +16,10 @@
#ifndef RARCH_DSP_FILTER_H__
#define RARCH_DSP_FILTER_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct rarch_dsp_filter rarch_dsp_filter_t;
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,
struct rarch_dsp_data *data);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -16,6 +16,10 @@
#ifndef __RARCH_AUTOSAVE_H
#define __RARCH_AUTOSAVE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
typedef struct autosave autosave_t;
@ -33,4 +37,8 @@ void lock_autosave(void);
void unlock_autosave(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -16,6 +16,10 @@
#ifndef __RARCH_CHEATS_H
#define __RARCH_CHEATS_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct cheat_manager cheat_manager_t;
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);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -16,14 +16,15 @@
#ifndef INPUT_COMMON_H__
#define INPUT_COMMON_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "input_context.h"
#include <file/config_file.h>
#include <stdint.h>
#include "../driver.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef uint64_t retro_input_t ;

View File

@ -23,10 +23,18 @@
#ifndef __LIBRETRO_SDK_SCALER_FILTER_H__
#define __LIBRETRO_SDK_SCALER_FILTER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <boolean.h>
#include <gfx/scaler/scaler.h>
bool scaler_gen_filter(struct scaler_ctx *ctx);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -23,6 +23,10 @@
#ifndef __LIBRETRO_SDK_SCALER_H__
#define __LIBRETRO_SDK_SCALER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.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_free(void *ptr);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -16,6 +16,10 @@
#ifndef __RARCH_MOVIE_H
#define __RARCH_MOVIE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.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);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -18,6 +18,10 @@
#ifndef _RETRO_IMPLEMENTATION_V1_H
#define _RETRO_IMPLEMENTATION_V1_H
#ifdef __cplusplus
extern "C" {
#endif
#include "libretro.h"
typedef struct retro_callbacks
@ -34,4 +38,8 @@ void retro_set_default_callbacks(void *data);
void retro_set_rewind_callbacks(void);
void retro_flush_audio(const int16_t *data, size_t samples);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -16,6 +16,10 @@
#ifndef __RARCH_REWIND_H
#define __RARCH_REWIND_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.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,
unsigned int *entries, size_t *bytes, bool *full);
#ifdef __cplusplus
}
#endif
#endif