minor nit: printf attribute was removed by -DSD_EXPORT_SYMBOLS

This commit is contained in:
Rainer Gerhards 2010-09-08 12:17:15 +02:00 committed by Lennart Poettering
parent 51cfda28c3
commit e702c2c07d

View file

@ -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