chiark / gitweb /
journal: implicitly add code location to all messages logged with the native interface
[elogind.git] / src / systemd / sd-id128.h
index 22fcb932719fe508a8792785905b027150a7f214..af2841eb776675d8472eb12ca3a34c32825c9a9a 100644 (file)
 #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