compatibility fix:

use "attribute_XXX" instead of *__attribute__ ((XXX)) so we
can handle compiler/os dependencies in our compiler.h



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-09-22 14:58:24 +00:00
parent 4d188126d9
commit 2946b43e31

View File

@@ -140,7 +140,7 @@ struct ast_dynamic_str {
* be free()'d after it is no longer needed.
*/
AST_INLINE_API(
struct ast_dynamic_str *__attribute__ ((malloc)) ast_dynamic_str_create(size_t init_len),
struct ast_dynamic_str * attribute_malloc ast_dynamic_str_create(size_t init_len),
{
struct ast_dynamic_str *buf;