From: <el...@us...> - 2008-12-24 02:22:20
|
Revision: 11353 http://alleg.svn.sourceforge.net/alleg/?rev=11353&view=rev Author: elias Date: 2008-12-24 01:39:48 +0000 (Wed, 24 Dec 2008) Log Message: ----------- Allowed using Allegro with gcc 4.3 in C99 mode, which has different semantics for "extern inline". See http://gcc.gnu.org/gcc-4.3/porting_to.html Modified Paths: -------------- allegro/branches/4.3.10plus/include/allegro/internal/alconfig.h Modified: allegro/branches/4.3.10plus/include/allegro/internal/alconfig.h =================================================================== --- allegro/branches/4.3.10plus/include/allegro/internal/alconfig.h 2008-12-22 13:18:42 UTC (rev 11352) +++ allegro/branches/4.3.10plus/include/allegro/internal/alconfig.h 2008-12-24 01:39:48 UTC (rev 11353) @@ -81,6 +81,14 @@ #define AL_INLINE(type, name, args, code) \ static inline type name args; \ static inline type name args code + /* Needed if this header is included by C99 user code, as + * "extern __inline__" is defined differently in C99 (it exports + * a new global function symbol). + */ + #elif __GNUC_STDC_INLINE__ + #define AL_INLINE(type, name, args, code) \ + extern __inline__ __attribute__((__gnu_inline__)) type name args; \ + extern __inline__ __attribute__((__gnu_inline__)) type name args code #else #define AL_INLINE(type, name, args, code) \ extern __inline__ type name args; \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |