Re: [AD] Individual header dependency |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2003-03-26, Vincent Penquerc'h <Vincent.Penquerch@xxxxxxxxxx> wrote:
> > BTW, I can't do 'void my_func(struct BITMAP *bmp)' because I
> > get a warning from gcc saying that the struct is defined inside
> > a parameter list. Putting 'struct BITMAP;' on a separate line
> > before silences this. How is gcc so pedantic?
>
> If I understand right, this is only having to declare a type you
> are using, no ? So this seems normal. Or am I missing something ?
It's ok for structs like BITMAP or DIALOG, but it's shorter to
#include <allegro/palette.h> for PALETTE. To maintain coherency I
tried to include whatever allegro.h file defined each struct and
found this little problem. As you say I can include gfx.h before.