]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
compatibility fix:
authorLuigi Rizzo <rizzo@icir.org>
Fri, 22 Sep 2006 14:58:24 +0000 (14:58 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 22 Sep 2006 14:58:24 +0000 (14:58 +0000)
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

include/asterisk/threadstorage.h

index 6e141a5d2d19bad1937a78db940175e067e7519a..14c6d65b94942cbf5be61a4ac55ae2a78a471aca 100644 (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;