compatibility.h
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Development Platform:

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 */