instead of trying to forcibly load res_agi when app_stack is loaded (even if the...
[asterisk/asterisk.git] / include / asterisk / compiler.h
index b2db7ff..0468cd3 100644 (file)
 /* Some older version of GNU gcc (3.3.5 on OpenBSD 4.3 for example) dont like 'NULL' as sentinel */
 #define SENTINEL ((char *)NULL)
 
+#ifdef HAVE_ATTRIBUTE_weak
+#define attribute_weak __attribute__((weak))
+#else
+#define attribute_weak
+#endif
+
 #endif /* _ASTERISK_COMPILER_H */