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