summaryrefslogtreecommitdiff
path: root/src/systemd/sd-bus-vtable.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-07 16:44:48 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-07 16:53:26 +0100
commit0095c45415ad24338342369d76d5635088294eae (patch)
treebec2c51b45b950b17e2427031a0de7a2c150668b /src/systemd/sd-bus-vtable.h
parent1ec6af16f501a6e281fe5604d4be8380bad38646 (diff)
api: replace manual C++ guards by macros
Diffstat (limited to 'src/systemd/sd-bus-vtable.h')
-rw-r--r--src/systemd/sd-bus-vtable.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/systemd/sd-bus-vtable.h b/src/systemd/sd-bus-vtable.h
index d1642bae5..18fc30bd2 100644
--- a/src/systemd/sd-bus-vtable.h
+++ b/src/systemd/sd-bus-vtable.h
@@ -22,9 +22,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "_sd-common.h"
+
+_SD_BEGIN_DECLARATIONS;
typedef struct sd_bus_vtable sd_bus_vtable;
@@ -128,8 +128,6 @@ struct sd_bus_vtable {
.type = _SD_BUS_VTABLE_END, \
}
-#ifdef __cplusplus
-}
-#endif
+_SD_END_DECLARATIONS;
#endif