chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
api: replace manual C++ guards by macros
[elogind.git]
/
src
/
systemd
/
sd-id128.h
diff --git
a/src/systemd/sd-id128.h
b/src/systemd/sd-id128.h
index 6066f395fac043fb87ed7aebec382e865e998d4e..5bae9655cc1e06a162f5b4f33fc89218bec0b598 100644
(file)
--- a/
src/systemd/sd-id128.h
+++ b/
src/systemd/sd-id128.h
@@
-25,9
+25,9
@@
#include <inttypes.h>
#include <string.h>
#include <inttypes.h>
#include <string.h>
-#i
fdef __cplusplus
-extern "C" {
-#endif
+#i
nclude "_sd-common.h"
+
+_SD_BEGIN_DECLARATIONS;
/* 128 Bit ID APIs. See sd-id128(3) for more information. */
/* 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 }})
#define SD_ID128_NULL ((sd_id128_t) { .qwords = { 0, 0 }})
-#ifdef __cplusplus
-}
-#endif
+_SD_END_DECLARATIONS;
#endif
#endif