From: Tim Kientzle Date: Sun, 14 Feb 2016 06:06:09 +0000 (-0800) Subject: Fix stringification here X-Git-Tag: v3.1.901a~9^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e614bd60a2367eda738b435d56f37a9e39c32844;p=thirdparty%2Flibarchive.git Fix stringification here --- diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index 3aa3d8c48..cc3d1c460 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