compat.h

来自「一个类似与Windows环境下的softice的源代码」· C头文件 代码 · 共 47 行

H
47
字号
/****************************************************************************** * * Copyright (c) 2003 Gerhard W. Gruber * * PROJECT: pICE * $Source: /cvsroot/pice/pice/module/compat.h,v $ * $Revision: 1.1 $ * $Date: 2004/02/17 23:12:25 $ * $Author: lightweave $ * $Name:  $ * * $Log: compat.h,v $ * Revision 1.1  2004/02/17 23:12:25  lightweave * New configuration handler for reading config files. See CHANGES.txt for * details. * * *****************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/// This file contains only macros to help keeping the code compatible over// various kernel versions, so not to require to change the code with every// version.// Of course this file can only contains what you can achieve with macros.// For everything else you stil will have to write it in the codefile.//#ifndef _COMPAT_H#define _COMPAT_H#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19)#define COMPAT_expand_stack(vm, adr)   expand_stack(vm, adr, NULL)#else#define COMPAT_expand_stack(vm, adr)   expand_stack(vm, adr)#endif#endif

⌨️ 快捷键说明

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