compatibility.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/fs/befs/compatiblity.h
  3.  *
  4.  * Copyright (C) 2001 Will Dyson <will_dyson@pobox.com>
  5.  *   AKA <will@cs.earlham.edu>
  6.  *
  7.  * This file trys to take care of differences between
  8.  * kernel versions
  9.  */
  10. #include <linux/version.h>
  11. /* New interfaces in 2.4.10 */
  12. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,10)
  13. #define min_t(type,x,y) 
  14. ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
  15. #define max_t(type,x,y) 
  16. ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
  17. #define vsnprintf(buf, n, fmt, args) vsprintf(buf, fmt, args)
  18. #define MODULE_LICENSE(x)
  19. #endif /* LINUX_VERSION_CODE */