src/plugin.h: Use __attribute__((format)) for plugin_log.
[collectd.git] / src / collectd.h
index 55aac16..411048a 100644 (file)
 
 #define STATIC_ARRAY_LEN(array) (sizeof (array) / sizeof ((array)[0]))
 
+/* Remove GNU specific __attribute__ settings when using another compiler */
+#if !__GNUC__
+# define __attribute__(x) /**/
+#endif
+
 extern char hostname_g[];
 extern int  interval_g;