comp_dep.h

来自「此为破解装载器一书中的源代码,在看雪论坛下载的,」· C头文件 代码 · 共 35 行

H
35
字号
/* comp_dep.h ************************************* updated: 960801.15:00 TT
 *
 * This file contains a few constants which some compilers do not have
 * defined at all ( even though they're ANSI ).
 */

#ifndef FILENAME_MAX
#define FILENAME_MAX 255
#endif

#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif

#ifndef SEEK_SET
#define SEEK_SET  0  /* seek from start of file */
#endif
#ifndef SEEK_CUR
#define SEEK_CUR  1  /* relative to current position */
#endif
#ifndef SEEK_END
#define SEEK_END  2  /* relative to end of file */
#endif

#ifndef S_ISREG
#define S_ISREG(m)  (((m)&(S_IFMT))==S_IFREG)
#endif

#ifndef S_ISDIR
#define S_ISDIR(m) (((m)&(S_IFMT))==S_IFDIR)
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?