Added CC_CONST_FUNCTION as a work-around to the sdcc const function pointer bug

This commit is contained in:
adamdunkels 2008-07-03 07:38:52 +00:00
parent 040d65c1f6
commit f274b26588
2 changed files with 6 additions and 4 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: chameleon-bitopt.c,v 1.4 2008/04/01 13:22:59 nifi Exp $
* $Id: chameleon-bitopt.c,v 1.5 2008/07/03 07:38:52 adamdunkels Exp $
*/
/**
@ -334,7 +334,7 @@ unpack_header(void)
return c;
}
/*---------------------------------------------------------------------------*/
const struct chameleon_module chameleon_bitopt = {
CC_CONST_FUNCTION struct chameleon_module chameleon_bitopt = {
unpack_header,
pack_header,
header_size,