diff options
Diffstat (limited to 'utf8proc.c')
-rw-r--r-- | utf8proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -84,8 +84,10 @@ DLLEXPORT const int8_t utf8proc_utf8class[256] = { /* Should follow semantic-versioning rules (semver.org) based on API compatibility. (Note that the shared-library version number will be different, being based on ABI compatibility.): */ +#define STRINGIZEx(x) #x +#define STRINGIZE(x) STRINGIZEx(x) DLLEXPORT const char *utf8proc_version(void) { - return "1.2-dev"; + return STRINGIZE(UTF8PROC_VERSION_MAJOR) "." STRINGIZE(UTF8PROC_VERSION_MINOR) "." STRINGIZE(UTF8PROC_VERSION_PATCH) "-dev"; } DLLEXPORT const char *utf8proc_errmsg(ssize_t errcode) { |