]> git.lizzy.rs Git - nothing.git/blob - src/system/file.h
Migrate level parsing to linestream-less mechanism
[nothing.git] / src / system / file.h
1 #ifndef FILE_H_
2 #define FILE_H_
3
4 #include <time.h>
5 #ifdef _WIN32
6 #define WIN32_LEAN_AND_MEAN
7 #include <windows.h>
8 #endif
9 #ifndef _WIN32
10 #include <dirent.h>
11 #endif
12
13 #include "system/s.h"
14
15 #ifdef _WIN32
16 struct dirent
17 {
18     char d_name[MAX_PATH+1];
19 };
20
21 typedef struct DIR DIR;
22
23 DIR *opendir(const char *name);
24 struct dirent *readdir(DIR *dirp);
25 void closedir(DIR *dirp);
26 #endif
27
28 String read_whole_file(Memory *memory, const char *filepath);
29
30 #endif  // FILE_H_