use PACKAGE_VERSION instead

This commit is contained in:
NishiOwO 2025-04-06 05:46:24 +09:00
parent 89c3855d6f
commit e69dcab7fa
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343

View File

@ -13,7 +13,7 @@
#include <string.h>
#include <stdlib.h>
#define NB_VERSION "1.0.0"
#define NB_VERSION PACKAGE_VERSION
void nb_get_version(nb_version_t* version) {
char* cpstr = malloc(strlen(NB_VERSION) + 1);