lkml.org 
[lkml]   [1999]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectBogus #if's in the kernel.
Enjoy:
#if LINUX_VERSION_CODE< LinuxVersionCode(2,1,93)
#include <linux/bios32.h>
#endif

#if !defined(__i386__)
#error "This driver has only been tested on the x86 platform"
#endif

#if LINUX_VERSION_CODE < LinuxVersionCode(2,2,0)
#error "This driver only works with kernel 2.2.0 and later"
#endif

Said snippet is taken from drivers/scsi/ips.c. Grep for LINUX_VERSION_CODE
in drivers/* shows tons of checks for 2.1.23, 2.1.45, quite a few checks
for 1.3.<something>, yodda, yodda, but this one takes the cake.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.118 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site