diff options
author | Tim Kientzle <kientzle@acm.org> | 2016-02-13 22:06:09 -0800 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2016-02-13 22:06:09 -0800 |
commit | e614bd60a2367eda738b435d56f37a9e39c32844 (patch) | |
tree | 4496d86fc5b3893338bce01693e63fb3986a8f8c /libarchive/archive_util.c | |
parent | 807e2df242f36373d76706a52c394634f1b108ce (diff) | |
download | libarchive-e614bd60a2367eda738b435d56f37a9e39c32844.tar.gz |
Fix stringification here
Diffstat (limited to 'libarchive/archive_util.c')
-rw-r--r-- | libarchive/archive_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index 3aa3d8c4..cc3d1c46 100644 --- a/libarchive/archive_util.c +++ b/libarchive/archive_util.c @@ -161,9 +161,11 @@ const char * archive_liblz4_version(void) { #if defined(HAVE_LZ4_H) && defined(HAVE_LIBLZ4) -#define NUMBER(x) #x +#define str(s) #s +#define NUMBER(x) str(x) return NUMBER(LZ4_VERSION_MAJOR) "." NUMBER(LZ4_VERSION_MINOR) "." NUMBER(LZ4_VERSION_RELEASE); #undef NUMBER +#undef str #else return NULL; #endif |