X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-shutdown.h;h=1d65549882cfe743848cef0b13e3e2b5bc0fa7ef;hb=4cd1214db6cf4b262e8ce6381bc710091b375c96;hp=6698c8c5c420de29ae456c3b90948a1c40a1476d;hpb=aacf3b483b70b9a9ff16217f6376d143cbfe4636;p=elogind.git diff --git a/src/systemd/sd-shutdown.h b/src/systemd/sd-shutdown.h index 6698c8c5c..1d6554988 100644 --- a/src/systemd/sd-shutdown.h +++ b/src/systemd/sd-shutdown.h @@ -26,7 +26,13 @@ #include -#include "_sd-common.h" +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef _sd_packed_ +# define _sd_packed_ __attribute__((packed)) +#endif typedef enum sd_shutdown_mode { SD_SHUTDOWN_NONE = 0, @@ -107,4 +113,8 @@ struct sd_shutdown_command { * anybody. */ +#ifdef __cplusplus +} +#endif + #endif