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_cxx . . $ `linux/linux_fix.h:20:9`!
21
22 #include <sys/stat.h>
23
24 #define LOKI_VERSIONcxx . . $ `linux/linux_fix.h:24:9`! ""
25
26 #define HGLOBALcxx . . $ `linux/linux_fix.h:26:9`! void *
27
28 void Sleepcxx . . $ Sleep(d4f767463ce0a6b3).(int millis);
29 char *struprcxx . . $ strupr(7a9722d75b371431).(char *string);
30
31 #define _statcxx . . $ `linux/linux_fix.h:31:9`! stat
32
33 // Replace missing defines from stdlib.h
34 #define _MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! 260 /* max. length of full pathname*/
35 #define _MAX_FNAMEcxx . . $ `linux/linux_fix.h:35:9`! 256 /* max. length of path component*/
36 #define _MAX_EXTcxx . . $ `linux/linux_fix.h:36:9`! 256 /* max. length of extension component*/
37
38 // _cdecl replacement
39 #define __cdeclcxx . . $ `linux/linux_fix.h:39:9`! __attribute__((cdecl))
40 // __stdcall replacement
41 #define __stdcallcxx . . $ `linux/linux_fix.h:41:9`! __attribute__((stdcall))
42
43 #define stricmpcxx . . $ `linux/linux_fix.h:43:9`!(a, b) strcasecmp(a, b)
44 #define strnicmpcxx . . $ `linux/linux_fix.h:44:9`!(a, b, c) strncasecmp(a, b, c)
45 #define _chmodcxx . . $ `linux/linux_fix.h:45:9`!(a, b) chmod(a, b)
46 #endif