```
png_read_info (png_ptr, info_ptr);
{ 
    png_byte color_type = info_ptr->color_type;
    png_byte bit_depth  = info_ptr->bit_depth;
    ...

```

For last 2 lines I get

> 
> error: dereferencing pointer to incomplete type
> 
> 
> 

What's wrong? In libpng 1.4 this was always ok.