[asterisk-commits] kpfleming: branch tilghman/kill_stubs r276436 - /team/tilghman/kill_stubs/inc...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 14 14:28:01 CDT 2010


Author: kpfleming
Date: Wed Jul 14 14:27:49 2010
New Revision: 276436

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276436
Log:
there is no need to export a non-prefixed alias for optional API functions;
all modules compiled against this version of Asterisk will support
the optional API mechanism


Modified:
    team/tilghman/kill_stubs/include/asterisk/optional_api.h

Modified: team/tilghman/kill_stubs/include/asterisk/optional_api.h
URL: http://svnview.digium.com/svn/asterisk/team/tilghman/kill_stubs/include/asterisk/optional_api.h?view=diff&rev=276436&r1=276435&r2=276436
==============================================================================
--- team/tilghman/kill_stubs/include/asterisk/optional_api.h (original)
+++ team/tilghman/kill_stubs/include/asterisk/optional_api.h Wed Jul 14 14:27:49 2010
@@ -174,11 +174,11 @@
 
 #define AST_OPTIONAL_API(result, name, proto, stub) \
 	result AST_OPTIONAL_API_NAME(name) proto; \
-	__attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
+	static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
 
 #define AST_OPTIONAL_API_ATTR(result, attr, name, proto, stub)	\
 	result __attribute__((attr)) AST_OPTIONAL_API_NAME(name) proto; \
-	__attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
+	static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
 
 #else
 




More information about the asterisk-commits mailing list