on Monday, September 30, 2002 22:42 you wrote:
>> /* EXIM_DBOPEN - sets *dbpp to point to an EXIM_DB, NULL if failed */
>> +#if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
SAR> Note that the above test will break at versions 5.0, 6.0, 7.0, etc.
Right - but I never said the patch was perfect.
SAR> Maybe it should be something like:
SAR> #if ((1000*DB_VERSION_MAJOR + DB_VERSION_MINOR) >= 4001)
SAR> Which will break, too, if there are more than 1000 minor versions.
Choose a larger number :-)
#if ((DB_VERSION_MAJOR<<16 + DB_VERSION_MAJOR) >= 0x40001)
--
Jochen Erwied | home: jochen@??? +49-208-38800-18, FAX: -19
Sauerbruchstr. 17 | work: joe@??? +49-2151-7294-24, FAX: -50
D-45470 Muelheim | First sightings... <1672@???> 1989/10/11 18:06