mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Compile retro_stat as C
This commit is contained in:
parent
4b41ea60a0
commit
c96976083e
2 changed files with 16 additions and 0 deletions
|
@ -72,6 +72,10 @@
|
||||||
#include <retro_miscellaneous.h>
|
#include <retro_miscellaneous.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
enum stat_mode
|
enum stat_mode
|
||||||
{
|
{
|
||||||
IS_DIRECTORY = 0,
|
IS_DIRECTORY = 0,
|
||||||
|
@ -211,3 +215,7 @@ bool mkdir_norecurse(const char *dir)
|
||||||
printf("mkdir(%s) error: %s.\n", dir, strerror(errno));
|
printf("mkdir(%s) error: %s.\n", dir, strerror(errno));
|
||||||
return ret == 0;
|
return ret == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -28,6 +28,10 @@
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* path_is_directory:
|
* path_is_directory:
|
||||||
* @path : path
|
* @path : path
|
||||||
|
@ -54,4 +58,8 @@ int32_t path_get_size(const char *path);
|
||||||
**/
|
**/
|
||||||
bool mkdir_norecurse(const char *dir);
|
bool mkdir_norecurse(const char *dir);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue