LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1209|回复: 1

defined(LINUX_VERSION_CODE) 是什么函数?

[复制链接]
发表于 2005-11-14 13:39:30 | 显示全部楼层 |阅读模式
#if ! defined(LINUX_VERSION_CODE)
#include <linux/version.h>
#endif

这个defined()是什么函数?
发表于 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

  1.     181 Note that kernel versions 2.0.x (and earlier) mistakenly called the
  2.     182 ioremap() function "vremap()".  ioremap() is the proper name, but I
  3.     183 didn't think straight when I wrote it originally.  People who have to
  4.     184 support both can do something like:
  5.     185
  6.     186     /* support old naming silliness */
  7.     187     #if LINUX_VERSION_CODE < 0x020100
  8.     188     #define ioremap vremap
  9.     189     #define iounmap vfree
  10.     190     #endif
  11.     191
  12.     192 at the top of their source files, and then they can use the right names
  13.     193 even on 2.0.x systems.
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表