chiark / gitweb /
api: replace manual C++ guards by macros
[elogind.git] / src / systemd / sd-bus-protocol.h
index ff2bcc93b8792633764f8addf6bae4f76c87bec7..07fade6039459adce079cff516d46c475115e84c 100644 (file)
@@ -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