|
|
发表于 2005-11-14 16:10:23
|
显示全部楼层
Post by yelvtaohua
#if ! defined(LINUX_VERSION_CODE)
#include <linux/version.h>
#endif
这个defined()是什么函数?
http://lists.arm.linux.org.uk/pi ... -August/004772.html
- 181 Note that kernel versions 2.0.x (and earlier) mistakenly called the
- 182 ioremap() function "vremap()". ioremap() is the proper name, but I
- 183 didn't think straight when I wrote it originally. People who have to
- 184 support both can do something like:
- 185
- 186 /* support old naming silliness */
- 187 #if LINUX_VERSION_CODE < 0x020100
- 188 #define ioremap vremap
- 189 #define iounmap vfree
- 190 #endif
- 191
- 192 at the top of their source files, and then they can use the right names
- 193 even on 2.0.x systems.
复制代码 |
|