Commit d8ce7667 authored by Nicolas Denoyelle's avatar Nicolas Denoyelle

fail library initialization if header is not compatible

parent 81d0b32f
Pipeline #6744 canceled with stage
in 10 minutes and 12 seconds
......@@ -47,6 +47,8 @@ int aml_init(int *argc, char **argv[])
{
char * version = VERSION;
aml_major_version = atoi(strtok(version, "."));
if(aml_major_version != AML_ABI_VERSION)
return -1;
aml_minor_version = atoi(strtok(NULL, "."));
aml_patch_version = atoi(strtok(NULL, "."));
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment