1 /** @file fs_windows.h  Windows-specific file system operations.
2  *
3  * @authors Copyright (c) 2014-2017 Jaakko Keränen <jaakko.keranen@iki.fi>
4  *
5  * @par License
6  * GPL: http://www.gnu.org/licenses/gpl.html
7  *
8  * <small>This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by the
10  * Free Software Foundation; either version 2 of the License, or (at your
11  * option) any later version. This program is distributed in the hope that it
12  * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14  * Public License for more details. You should have received a copy of the GNU
15  * General Public License along with this program; if not, see:
16  * http://www.gnu.org/licenses</small>
17  */
18 
19 #ifndef LIBDOOMSDAY_FS_WINDOWS_H
20 #define LIBDOOMSDAY_FS_WINDOWS_H
21 
22 #include "../libdoomsday.h"
23 #include <stdio.h>
24 #ifdef WIN32
25 #  include <io.h> // before the defines
26 #  include <direct.h>
27 #endif
28 
29 #define fopen  FS_Win32_fopen
30 #define access FS_Win32_access
31 #define mkdir  FS_Win32_mkdir
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 LIBDOOMSDAY_PUBLIC FILE *FS_Win32_fopen(char const *filenameUtf8, char const *mode);
38 LIBDOOMSDAY_PUBLIC int FS_Win32_access(char const *pathUtf8, int mode);
39 LIBDOOMSDAY_PUBLIC int FS_Win32_mkdir(char const *dirnameUtf8);
40 
41 #ifdef __cplusplus
42 } //extern "C"
43 #endif
44 
45 #endif // LIBDOOMSDAY_FS_WINDOWS_H
46