diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-07 16:44:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-07 16:53:26 +0100 |
commit | 0095c45415ad24338342369d76d5635088294eae (patch) | |
tree | bec2c51b45b950b17e2427031a0de7a2c150668b /src/systemd/sd-login.h | |
parent | 1ec6af16f501a6e281fe5604d4be8380bad38646 (diff) | |
download | systemd-0095c45415ad24338342369d76d5635088294eae.tar.gz |
api: replace manual C++ guards by macros
Diffstat (limited to 'src/systemd/sd-login.h')
-rw-r--r-- | src/systemd/sd-login.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 961bd88ec7..a230aff4c5 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -25,9 +25,7 @@ #include <sys/types.h> #include <inttypes.h> -#ifdef __cplusplus -extern "C" { -#endif +#include "_sd-common.h" /* * A few points: @@ -49,6 +47,8 @@ extern "C" { * See sd-login(3) for more information. */ +_SD_BEGIN_DECLARATIONS; + /* Get session from PID. Note that 'shared' processes of a user are * not attached to a session, but only attached to a user. This will * return an error for system processes and 'shared' processes of a @@ -182,8 +182,6 @@ int sd_login_monitor_get_events(sd_login_monitor *m); /* Get timeout for poll(), as usec value relative to CLOCK_MONOTONIC's epoch */ int sd_login_monitor_get_timeout(sd_login_monitor *m, uint64_t *timeout_usec); -#ifdef __cplusplus -} -#endif +_SD_END_DECLARATIONS; #endif |