[asterisk-commits] rizzo: trunk r43480 - /trunk/include/asterisk/threadstorage.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 22 07:58:24 MST 2006


Author: rizzo
Date: Fri Sep 22 09:58:24 2006
New Revision: 43480

URL: http://svn.digium.com/view/asterisk?rev=43480&view=rev
Log:
compatibility fix:
use "attribute_XXX" instead of *__attribute__ ((XXX)) so we
can handle compiler/os dependencies in our compiler.h


Modified:
    trunk/include/asterisk/threadstorage.h

Modified: trunk/include/asterisk/threadstorage.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/threadstorage.h?rev=43480&r1=43479&r2=43480&view=diff
==============================================================================
--- trunk/include/asterisk/threadstorage.h (original)
+++ trunk/include/asterisk/threadstorage.h Fri Sep 22 09:58:24 2006
@@ -140,7 +140,7 @@
  *       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;
 



More information about the asterisk-commits mailing list