Compile retro_stat as C

This commit is contained in:
twinaphex 2015-10-25 20:57:38 +01:00
parent 4b41ea60a0
commit c96976083e
2 changed files with 16 additions and 0 deletions

View File

@ -72,6 +72,10 @@
#include <retro_miscellaneous.h>
#include <boolean.h>
#ifdef __cplusplus
extern "C" {
#endif
enum stat_mode
{
IS_DIRECTORY = 0,
@ -211,3 +215,7 @@ bool mkdir_norecurse(const char *dir)
printf("mkdir(%s) error: %s.\n", dir, strerror(errno));
return ret == 0;
}
#ifdef __cplusplus
}
#endif

View File

@ -28,6 +28,10 @@
#include <boolean.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* path_is_directory:
* @path : path
@ -54,4 +58,8 @@ int32_t path_get_size(const char *path);
**/
bool mkdir_norecurse(const char *dir);
#ifdef __cplusplus
}
#endif
#endif