Logo10.3.177.165 
  News  Recent  Stats  Forums  Discord  GitHub  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   BBCode test
 
 Content
   List Content
 
 Projects
   All projects
  View comments
Title  
  Forums
    Open Amiga Forums
      Project Website
        Guides  
          Submit you guides and site guide corrections here.
salass00Library version checking20140827 06:43
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