about summary refs log tree commit homepage
path: root/util.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-01-31 00:59:00 +0000
committerEric Wong <normalperson@yhbt.net>2013-01-31 02:02:26 +0000
commit25740ec5e7e1a13e48552b4c6b0e60e8730641ea (patch)
treed7892ffd469bb30af73df3de69439776cacc3c9d /util.h
parent6ed94e8b4a9219b10f8132078ba2882fddae40f9 (diff)
downloadcmogstored-25740ec5e7e1a13e48552b4c6b0e60e8730641ea.tar.gz
We shall use it outside of defaults.h
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index bec2aec..e679c56 100644
--- a/util.h
+++ b/util.h
@@ -3,6 +3,10 @@
  * License: GPLv3 or later (see COPYING for details)
  */
 
+/* stringify +s+ */
+#define MOG_STR(s) MOG_STR0(s)
+#define MOG_STR0(s) #s
+
 /*
  * some systems define EWOULDBLOCK to a different value than EAGAIN,
  * but POSIX allows them to be identical.