From 9d9e90e672499d9f9fa29d15cb36df5eeb7e8fa4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 30 Sep 2015 03:41:01 +0200 Subject: [PATCH] (libretro_common) Fix retro_stat - put it inside extern C block --- libretro-common/file/retro_stat.c | 2 +- libretro-common/include/retro_stat.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/retro_stat.c b/libretro-common/file/retro_stat.c index adb3e08dc6..8ab43835b4 100644 --- a/libretro-common/file/retro_stat.c +++ b/libretro-common/file/retro_stat.c @@ -152,7 +152,7 @@ bool path_is_character_special(const char *path) return path_stat(path, IS_CHARACTER_SPECIAL); } -bool stat_is_valid(const char *path) +bool path_is_valid(const char *path) { return path_stat(path, IS_VALID); } diff --git a/libretro-common/include/retro_stat.h b/libretro-common/include/retro_stat.h index eaec86889f..77f13d0acb 100644 --- a/libretro-common/include/retro_stat.h +++ b/libretro-common/include/retro_stat.h @@ -28,6 +28,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * path_is_directory: * @path : path @@ -52,4 +56,8 @@ bool path_is_valid(const char *path); **/ bool mkdir_norecurse(const char *dir); +#ifdef __cplusplus +} +#endif + #endif