]> err.no Git - systemd/commitdiff
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 347421381f4ec61d14cea796b8954ace502c5f7b..6c8872fc235d1912ed410a2c8b0a0962850f64fc 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