chiark / gitweb /
sd-daemon: optionally, avoid hiding the ELF symbols
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Sep 2010 23:55:17 +0000 (01:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Sep 2010 23:55:35 +0000 (01:55 +0200)
src/sd-daemon.h

index 3474213..6c8872f 100644 (file)
@@ -67,7 +67,7 @@ extern "C" {
   See sd-daemon(7) for more information.
 */
 
-#if __GNUC__ >= 4
+#if (__GNUC__ >= 4) && !defined(SD_EXPORT_SYMBOLS)
 #define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
 #define _sd_hidden_ __attribute__ ((visibility("hidden")))
 #else