]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix stringification here
authorTim Kientzle <kientzle@acm.org>
Sun, 14 Feb 2016 06:06:09 +0000 (22:06 -0800)
committerTim Kientzle <kientzle@acm.org>
Sun, 14 Feb 2016 06:06:09 +0000 (22:06 -0800)
libarchive/archive_util.c

index 3aa3d8c4815bdc08f2dd2b79bea0d86e460712f8..cc3d1c460728ff21da39ac25be1fe45b0ccb05aa 100644 (file)
@@ -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