diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-07 16:44:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-07 16:53:26 +0100 |
commit | 0095c45415ad24338342369d76d5635088294eae (patch) | |
tree | bec2c51b45b950b17e2427031a0de7a2c150668b /src/systemd/sd-bus-protocol.h | |
parent | 1ec6af16f501a6e281fe5604d4be8380bad38646 (diff) |
api: replace manual C++ guards by macros
Diffstat (limited to 'src/systemd/sd-bus-protocol.h')
-rw-r--r-- | src/systemd/sd-bus-protocol.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/systemd/sd-bus-protocol.h b/src/systemd/sd-bus-protocol.h index ff2bcc93b8..07fade6039 100644 --- a/src/systemd/sd-bus-protocol.h +++ b/src/systemd/sd-bus-protocol.h @@ -24,9 +24,9 @@ #include <endian.h> -#ifdef __cplusplus -extern "C" { -#endif +#include "_sd-common.h" + +_SD_BEGIN_DECLARATIONS; /* Types of message */ @@ -213,8 +213,6 @@ enum { #define SD_BUS_ERROR_INVALID_SIGNATURE "org.freedesktop.DBus.Error.InvalidSignature" #define SD_BUS_ERROR_INCONSISTENT_MESSAGE "org.freedesktop.DBus.Error.InconsistentMessage" -#ifdef __cplusplus -} -#endif +_SD_END_DECLARATIONS; #endif |