Re: [PD-dev] pdp_bitmap.c:478: error: invalid storage class for function ‘_map’

james tittle tigital at mac.com
Mon Feb 27 20:31:00 CET 2006


On Feb 27, 2006, at 2:45 AM, Hans-Christoph Steiner wrote:

>
> Yup, still compiling on Mac OS X 10.4.5 (gcc 4.0):
>
> cc -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses - 
> Wno-switch -I/Users/hans/cvs/pure-data/externals/pdp/../../pd/src - 
> O2 -funroll-loops -fomit-frame-pointer -ffast-math   -DPDP_VERSION= 
> \"0.12.4\" -I. -I/usr/X11R6/include  -I../include -I../../include - 
> I/Users/hans/cvs/pure-data/externals/pdp/../../pd/src -I/sw/ 
> include  -o pdp_bitmap.o -c pdp_bitmap.c
> pdp_bitmap.c: In function ‘_pdp_packet_bitmap_convert_mchp_to_rgb8’:
> pdp_bitmap.c:478: error: invalid storage class for function ‘_map’
> make[3]: *** [pdp_bitmap.o] Error 1
> make[2]: *** [common] Error 2
> make[1]: *** [pdp_all] Error 2
> make: *** [/Users/hans/cvs/pure-data/externals/../externals/pdp/ 
> pdp.pd_darwin] Error 2

...I moved the nested definition of _map outside of that function, ie.:

static inline u8 _map(s32 pixel){
	s32 mask = ~(pixel>>16);
	return ((pixel >> 7) & mask);
}

...and that works...

...I'll try to sync my pdp tree to the cvs one tonight...

jamie






More information about the Pd-dev mailing list