diff options
Diffstat (limited to 'src/systemd/sd-id128.h')
-rw-r--r-- | src/systemd/sd-id128.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systemd/sd-id128.h b/src/systemd/sd-id128.h index 22fcb93271..af2841eb77 100644 --- a/src/systemd/sd-id128.h +++ b/src/systemd/sd-id128.h @@ -26,6 +26,10 @@ #include <stdbool.h> #include <string.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef union sd_id128 sd_id128_t; union sd_id128 { @@ -58,4 +62,8 @@ static inline bool sd_id128_equal(sd_id128_t a, sd_id128_t b) { return memcmp(&a, &b, 16) == 0; } +#ifdef __cplusplus +} +#endif + #endif |