Added CC_CONST_FUNCTION as a work-around to the sdcc const function pointer bug
This commit is contained in:
parent
040d65c1f6
commit
f274b26588
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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;
|
return c;
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
const struct chameleon_module chameleon_bitopt = {
|
CC_CONST_FUNCTION struct chameleon_module chameleon_bitopt = {
|
||||||
unpack_header,
|
unpack_header,
|
||||||
pack_header,
|
pack_header,
|
||||||
header_size,
|
header_size,
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: chameleon-bitopt.h,v 1.1 2008/02/25 02:14:34 adamdunkels Exp $
|
* $Id: chameleon-bitopt.h,v 1.2 2008/07/03 07:38:52 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,6 +41,8 @@
|
||||||
#ifndef __CHAMELEON_BITOPT_H__
|
#ifndef __CHAMELEON_BITOPT_H__
|
||||||
#define __CHAMELEON_BITOPT_H__
|
#define __CHAMELEON_BITOPT_H__
|
||||||
|
|
||||||
extern const struct chameleon_module chameleon_bitopt;
|
#include "sys/cc.h"
|
||||||
|
|
||||||
|
extern CC_CONST_FUNCTION struct chameleon_module chameleon_bitopt;
|
||||||
|
|
||||||
#endif /* __CHAMELEON_BITOPT_H__ */
|
#endif /* __CHAMELEON_BITOPT_H__ */
|
||||||
|
|
Loading…
Reference in a new issue