diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-09-08 12:17:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-13 20:08:29 +0200 |
commit | e702c2c07df401a3cf5f7e107b3b2560a8c35af1 (patch) | |
tree | d811f096160c1e86d6b382610be85dd1904379b8 | |
parent | 51cfda28c3a91783e159ecac8e6923a3f830a459 (diff) |
minor nit: printf attribute was removed by -DSD_EXPORT_SYMBOLS
-rw-r--r-- | src/sd-daemon.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sd-daemon.h b/src/sd-daemon.h index 6c8872fc2..008a44c1d 100644 --- a/src/sd-daemon.h +++ b/src/sd-daemon.h @@ -67,11 +67,15 @@ extern "C" { See sd-daemon(7) for more information. */ -#if (__GNUC__ >= 4) && !defined(SD_EXPORT_SYMBOLS) +#if __GNUC__ >= 4 #define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b))) -#define _sd_hidden_ __attribute__ ((visibility("hidden"))) #else #define _sd_printf_attr_(a,b) +#endif + +#if (__GNUC__ >= 4) && !defined(SD_EXPORT_SYMBOLS) +#define _sd_hidden_ __attribute__ ((visibility("hidden"))) +#else #define _sd_hidden_ #endif |