Debian Codegraph @

linux/linux_fix.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef __LINUX_FIX_H_
20 #define __LINUX_FIX_H_
21
22 #include <sys/stat.h>
23
24 #define LOKI_VERSION ""
25
26 #define HGLOBAL void *
27
28 void Sleep(int millis);
29 char *strupr(char *string);
30
31 #define _stat stat
32
33 // Replace missing defines from stdlib.h
34 #define _MAX_PATH 260 /* max. length of full pathname*/
35 #define _MAX_FNAME 256 /* max. length of path component*/
36 #define _MAX_EXT 256 /* max. length of extension component*/
37
38 // _cdecl replacement
39 #define __cdecl __attribute__((cdecl))
40 // __stdcall replacement
41 #define __stdcall __attribute__((stdcall))
42
43 #define stricmp(a, b) strcasecmp(a, b)
44 #define strnicmp(a, b, c) strncasecmp(a, b, c)
45 #define _chmod(a, b) chmod(a, b)
46 #endif