The ncr53c8xx driver has, IMH^HO, the most elegant solution:
#define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s))
#if LINUX_VERSION_CODE >= LinuxVersionCode(1,3,0)
Hope this helps. On a more bizarre and esoteric note, LINUX_VERSION_CODE
& (1<<8) should be false for production kernels, true for development.