summaryrefslogtreecommitdiff
path: root/tools/perf/util/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/string.h')
-rw-r--r--tools/perf/util/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/string.h b/tools/perf/util/string.h
index 3dca2f654cd0..bf39dfadfd24 100644
--- a/tools/perf/util/string.h
+++ b/tools/perf/util/string.h
@@ -5,4 +5,7 @@
int hex2u64(const char *ptr, u64 *val);
+#define _STR(x) #x
+#define STR(x) _STR(x)
+
#endif