diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 979c3a26..87ea089f 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -70,11 +70,13 @@ typedef size_t uc_hook; // Unicorn API version #define UC_API_MAJOR 2 #define UC_API_MINOR 0 +#define UC_API_PATCH 0 #define UC_API_EXTRA 4 // Unicorn package version #define UC_VERSION_MAJOR UC_API_MAJOR #define UC_VERSION_MINOR UC_API_MINOR +#define UC_VERSION_PATCH UC_API_PATCH #define UC_VERSION_EXTRA UC_API_EXTRA /* diff --git a/uc.c b/uc.c index 7db8bff3..a5bdca5b 100644 --- a/uc.c +++ b/uc.c @@ -35,7 +35,8 @@ unsigned int uc_version(unsigned int *major, unsigned int *minor) *minor = UC_API_MINOR; } - return (UC_API_EXTRA << 16) + (UC_API_MAJOR << 8) + UC_API_MINOR; + return (UC_API_EXTRA << 24) + (UC_API_PATCH << 16) + (UC_API_MAJOR << 8) + + UC_API_MINOR; } UNICORN_EXPORT