X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-memfd.h;fp=src%2Fsystemd%2Fsd-memfd.h;h=f4ef8f102399f555f26b8d51e27ea6a6e865651b;hb=0095c45415ad24338342369d76d5635088294eae;hp=ee140e48d3fa8c31906d985d77324c34a4a76050;hpb=1ec6af16f501a6e281fe5604d4be8380bad38646;p=elogind.git diff --git a/src/systemd/sd-memfd.h b/src/systemd/sd-memfd.h index ee140e48d..f4ef8f102 100644 --- a/src/systemd/sd-memfd.h +++ b/src/systemd/sd-memfd.h @@ -26,9 +26,9 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif +#include "_sd-common.h" + +_SD_BEGIN_DECLARATIONS; typedef struct sd_memfd sd_memfd; @@ -51,8 +51,6 @@ int sd_memfd_get_sealed(sd_memfd *m); int sd_memfd_get_size(sd_memfd *m, uint64_t *sz); int sd_memfd_set_size(sd_memfd *m, uint64_t sz); -#ifdef __cplusplus -} -#endif +_SD_END_DECLARATIONS; #endif