Just wanted to mention that there is now a macro called LIB_IS_AT_LEAST() in exec/libraries.h that can be used for version checking.
#include <exec/libraries.h>
int main ( void ) {
if (!LIB_IS_AT_LEAST(LIBRARYBASE, MIN_VERSION, MIN_REVISION)) {
printf("Newer xyz.library needed! Upgrade ASAP.n");
return RETURN_FAIL;
}
/* go on with program */
}
Open Amiga project website, Created in 2008 by Björn Hagström