master
Allen Webster 2020-02-19 21:44:44 -08:00
parent 0422dadbc8
commit 79438ffd22
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
extern "C" b32 extern "C" b32
get_version(i32 maj, i32 min, i32 patch){ get_version(i32 maj, i32 min, i32 patch){
printf("CUS: %d.%d.%d\n", MAJOR, MINOR, PATCH); fprintf(stderr, "CUS: %d.%d.%d\n", MAJOR, MINOR, PATCH);
return(maj == MAJOR && min == MINOR && patch == PATCH); return(maj == MAJOR && min == MINOR && patch == PATCH);
} }

View File

@ -1700,7 +1700,7 @@ main(int argc, char **argv){
system_error_box(custom_not_found_msg); system_error_box(custom_not_found_msg);
} }
custom.get_version = (_Get_Version_Type*)system_get_proc(custom_library, "get_version"); custom.get_version = (_Get_Version_Type*)system_get_proc(custom_library, "get_version");
printf("VER: %d.%d.%d\n", MAJOR, MINOR, PATCH); fprintf(stderr, "VER: %d.%d.%d\n", MAJOR, MINOR, PATCH);
if (custom.get_version == 0 || custom.get_version(MAJOR, MINOR, PATCH) == 0){ if (custom.get_version == 0 || custom.get_version(MAJOR, MINOR, PATCH) == 0){
system_error_box(custom_fail_version_msg); system_error_box(custom_fail_version_msg);
} }