Use RETRO_BEGIN_DECLS/RETRO_END_DECLS

This commit is contained in:
twinaphex 2016-06-03 02:39:35 +02:00
parent 5f843d30a0
commit b34786171e
6 changed files with 23 additions and 40 deletions

View File

@ -19,9 +19,9 @@
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct cheevos_ctx_desc
{
@ -48,8 +48,6 @@ bool cheevos_set_cheats(void);
void cheevos_set_support_cheevos(bool state);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_H */

View File

@ -18,6 +18,7 @@
#define __DYNAMIC_H
#include <boolean.h>
#include <retro_common_api.h>
#include <libretro.h>
#include "core_type.h"
@ -26,9 +27,7 @@
#include "config.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
RETRO_BEGIN_DECLS
/**
* libretro_get_environment_info:
@ -182,9 +181,7 @@ void init_libretro_sym(enum rarch_core_type type,
**/
void uninit_libretro_sym(struct retro_core_t *core);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif

12
movie.h
View File

@ -17,14 +17,13 @@
#ifndef __RARCH_MOVIE_H
#define __RARCH_MOVIE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
#define BSV_MAGIC 0x42535631
@ -80,9 +79,6 @@ bool bsv_movie_ctl(enum bsv_ctl_state state, void *data);
bool bsv_movie_init_handle(const char *path, enum rarch_movie_type type);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif

View File

@ -20,6 +20,8 @@
#include <stdint.h>
#include <stddef.h>
#include <retro_common_api.h>
#define MSG_UNKNOWN 0x3a834e55U
#define MSG_PROGRAM 0xc339565dU
#define MSG_FOUND_SHADER 0x817f42b7U
@ -157,9 +159,7 @@
#define MSG_DOWNLOADING 0x465305dbU
#define MSG_EXTRACTING 0x25a4c19eU
#ifdef __cplusplus
extern "C" {
#endif
RETRO_BEGIN_DECLS
const char *msg_hash_to_str(uint32_t hash);
@ -187,10 +187,7 @@ const char *msg_hash_to_str_us(uint32_t hash);
uint32_t msg_hash_calculate(const char *s);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif

View File

@ -20,9 +20,9 @@
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct playlist_entry playlist_entry_t;
typedef struct content_playlist playlist_t;
@ -124,9 +124,6 @@ void playlist_write_file(playlist_t *playlist);
void playlist_qsort(playlist_t *playlist,
playlist_sort_fun_t *fn);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif

View File

@ -19,11 +19,11 @@
#include <boolean.h>
#include <retro_common_api.h>
#include "core_type.h"
#ifdef __cplusplus
extern "C" {
#endif
RETRO_BEGIN_DECLS
#define MENU_VALUE_FILE_WEBM 0x7ca00b50U
#define MENU_VALUE_FILE_F4F 0x0b886be5U
@ -178,8 +178,6 @@ bool retroarch_main_init(int argc, char *argv[]);
void retroarch_main_quit(void);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif