github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xcb/include/X11/Xw32defs.h (about) 1 #ifndef _XW32DEFS_H 2 # define _XW32DEFS_H 3 4 # ifdef __GNUC__ /* mingw is more close to unix than msvc */ 5 # if !defined(__daddr_t_defined) 6 typedef char *caddr_t; 7 # endif 8 # define lstat stat 9 10 # else 11 typedef char *caddr_t; 12 13 # define access _access 14 # define alloca _alloca 15 # define chdir _chdir 16 # define chmod _chmod 17 # define close _close 18 # define creat _creat 19 # define dup _dup 20 # define dup2 _dup2 21 # define environ _environ 22 # define execl _execl 23 # define execle _execle 24 # define execlp _execlp 25 # define execlpe _execlpe 26 # define execv _execv 27 # define execve _execve 28 # define execvp _execvp 29 # define execvpe _execvpe 30 # define fdopen _fdopen 31 # define fileno _fileno 32 # define fstat _fstat 33 # define getcwd _getcwd 34 # define getpid _getpid 35 # define hypot _hypot 36 # define isascii __isascii 37 # define isatty _isatty 38 # define lseek _lseek 39 # define mkdir _mkdir 40 # define mktemp _mktemp 41 # define open _open 42 # define putenv _putenv 43 # define read _read 44 # define rmdir _rmdir 45 # define sleep(x) Sleep((x) * 1000) 46 # define stat _stat 47 # define sys_errlist _sys_errlist 48 # define sys_nerr _sys_nerr 49 # define umask _umask 50 # define unlink _unlink 51 # define write _write 52 # define random rand 53 # define srandom srand 54 55 # define O_RDONLY _O_RDONLY 56 # define O_WRONLY _O_WRONLY 57 # define O_RDWR _O_RDWR 58 # define O_APPEND _O_APPEND 59 # define O_CREAT _O_CREAT 60 # define O_TRUNC _O_TRUNC 61 # define O_EXCL _O_EXCL 62 # define O_TEXT _O_TEXT 63 # define O_BINARY _O_BINARY 64 # define O_RAW _O_BINARY 65 66 # define S_IFMT _S_IFMT 67 # define S_IFDIR _S_IFDIR 68 # define S_IFCHR _S_IFCHR 69 # define S_IFREG _S_IFREG 70 # define S_IREAD _S_IREAD 71 # define S_IWRITE _S_IWRITE 72 # define S_IEXEC _S_IEXEC 73 74 # define F_OK 0 75 # define X_OK 1 76 # define W_OK 2 77 # define R_OK 4 78 # endif /* __GNUC__ */ 79 #endif