summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-04-16 10:56:29 +0200
committerChristian Ambach <ambi@samba.org>2013-05-06 16:33:38 +0200
commita4cc41d4d0ef42915694e10cd819462523b92a3b (patch)
tree11466635f2602464b5fe7f686c395f6666de72b2 /lib/replace
parentd68e676cacdcd346f0555c80a3389f50079d2e4f (diff)
downloadsamba-a4cc41d4d0ef42915694e10cd819462523b92a3b.tar.gz
samba-a4cc41d4d0ef42915694e10cd819462523b92a3b.tar.bz2
samba-a4cc41d4d0ef42915694e10cd819462523b92a3b.zip
lib/replace: add SCNx macros
we already have PRI*, but the corresponding SCN* were missing Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/replace.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 2262a8bd38..c0b799763a 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -108,6 +108,45 @@
# define PRIu64 __PRI64_PREFIX "u"
#endif
+#ifndef SCNd8
+# define SCNd8 "hhd"
+#endif
+#ifndef SCNd16
+# define SCNd16 "hd"
+#endif
+#ifndef SCNd32
+# define SCNd32 "d"
+#endif
+#ifndef SCNd64
+# define SCNd64 __PRI64_PREFIX "d"
+#endif
+
+#ifndef SCNi8
+# define SCNi8 "hhi"
+#endif
+#ifndef SCNi16
+# define SCNi16 "hi"
+#endif
+#ifndef SCNi32
+# define SCNi32 "i"
+#endif
+#ifndef SCNi64
+# define SCNi64 __PRI64_PREFIX "i"
+#endif
+
+#ifndef SCNu8
+# define SCNu8 "hhu"
+#endif
+#ifndef SCNu16
+# define SCNu16 "hu"
+#endif
+#ifndef SCNu32
+# define SCNu32 "u"
+#endif
+#ifndef SCNu64
+# define SCNu64 __PRI64_PREFIX "u"
+#endif
+
#ifdef HAVE_BSD_STRING_H
#include <bsd/string.h>
#endif