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-id128.h | |
parent | 1ec6af16f501a6e281fe5604d4be8380bad38646 (diff) | |
download | systemd-0095c45415ad24338342369d76d5635088294eae.tar.gz |
api: replace manual C++ guards by macros
Diffstat (limited to 'src/systemd/sd-id128.h')
-rw-r--r-- | src/systemd/sd-id128.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/systemd/sd-id128.h b/src/systemd/sd-id128.h index 6066f395fa..5bae9655cc 100644 --- a/src/systemd/sd-id128.h +++ b/src/systemd/sd-id128.h @@ -25,9 +25,9 @@ #include <inttypes.h> #include <string.h> -#ifdef __cplusplus -extern "C" { -#endif +#include "_sd-common.h" + +_SD_BEGIN_DECLARATIONS; /* 128 Bit ID APIs. See sd-id128(3) for more information. */ @@ -102,8 +102,6 @@ static inline int sd_id128_equal(sd_id128_t a, sd_id128_t b) { #define SD_ID128_NULL ((sd_id128_t) { .qwords = { 0, 0 }}) -#ifdef __cplusplus -} -#endif +_SD_END_DECLARATIONS; #endif |