Logo3.133.128.227 
  News  Recent  Stats  Forums  Discord  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   BBCode test
 
 Content
   About OpenAmiga
   Guidelines
   Definitions
   SVN Access
   Licenses
   IRC channel
   Links
   ToDo List
   List Content
 
 Projects
   Suggested (1)
   Open (11)
   Assigned (27)
   Pending (0)
   Finished (7)
   Closed (5)
 
 Categories
   Cli (2)
   Datatype (9)
   Drivers (3)
   System (15)
   Workbench (16)
  View comments
Title  
  Forums
    Open Amiga Forums
      Project Website
        Guides  
          Submit you guides and site guide corrections here.
salass00Library version checking20140827 08: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