mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix compilation on windows, needs implementation of fs_getmtime on Windows
This commit is contained in:
parent
5119976c9f
commit
c033ad6828
|
@ -1694,11 +1694,15 @@ int fs_is_dir(const char *path)
|
|||
|
||||
time_t fs_getmtime(const char *path)
|
||||
{
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
/* TODO */
|
||||
#else
|
||||
struct stat sb;
|
||||
if (stat(path, &sb) == -1)
|
||||
return 0;
|
||||
|
||||
return sb.st_mtime;
|
||||
#endif
|
||||
}
|
||||
|
||||
int fs_chdir(const char *path)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "detect.h"
|
||||
#include "stddef.h"
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in a new issue