summaryrefslogtreecommitdiff
path: root/src/systemd/_sd-common.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-11 23:40:00 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-12 00:12:44 +0100
commit98f91566cc7d43c6b86a711fa1d196ed5876b2f3 (patch)
tree2713f47f4402622e81f10d745d8c16123e817c1d /src/systemd/_sd-common.h
parent76b543756ef69ce69784d571aefe8de65eaeb331 (diff)
downloadsystemd-98f91566cc7d43c6b86a711fa1d196ed5876b2f3.tar.gz
bus: export utf8 validator calls as pure functions
Diffstat (limited to 'src/systemd/_sd-common.h')
-rw-r--r--src/systemd/_sd-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/_sd-common.h b/src/systemd/_sd-common.h
index b0c48aab9b..594ff3db2b 100644
--- a/src/systemd/_sd-common.h
+++ b/src/systemd/_sd-common.h
@@ -40,6 +40,10 @@
# define _sd_packed_ __attribute__((packed))
#endif
+#ifndef _sd_pure_
+# define _sd_pure_ __attribute__((pure))
+#endif
+
#ifndef _SD_STRINGIFY
# define _SD_XSTRINGIFY(x) #x
# define _SD_STRINGIFY(x) _SD_XSTRINGIFY(x)