Selaa lähdekoodia

Ignore __attribute__ for non-GNU compilers

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@753 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 22 vuotta sitten
vanhempi
commit
95bf7b2fd4
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      plugins/common.h

+ 5 - 0
plugins/common.h

@@ -180,3 +180,8 @@ enum {
 #  define textdomain(Domain)
 #  define bindtextdomain(Package, Directory)
 #endif
+
+/* For non-GNU compilers to ignore __attribute__ */
+#ifndef __GNUC__
+# define __attribute__(x) /* do nothing */
+#endif