Re: [AD] clear() problem and BeOS |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 06 Sep 2001, Angelo Mottola <a.mottola@xxxxxxxxxx> wrote:
>
> [...]
> #if (defined ALLEGRO_GCC)
> - extern inline void clear(BITMAP *bmp) { clear_bitmap(bmp); }
> + AL_INLINE(void, clear, (BITMAP *bmp), { clear_bitmap(bmp); })
> [...]
>
> With this change applied, everything works (shipped programs and non), but
> it's still puzzling to me... ALLEGRO_GCC is defined on BeOS, so alconfig.h
> should automatically #define AL_INLINE(x) as "extern inline x"; why using
> AL_INLINE works and the explicit form doesn't?
AL_INLINE also produces the actual functions in src/inline.c.
> In any case, do you agree if apply the patch?
Better to find out why "extern inline" doesn't work. Maybe
BeOS version of gcc is different?
--
DOOR SLINKY (dor SLIN kee), n. The springy device attached to the back of
a door that prevents the door from marring the wall.
-- Rich Hall, "Sniglets"