diff --git a/include/MCF5475.h b/include/MCF5475.h index 8feab2d..ed275cb 100644 --- a/include/MCF5475.h +++ b/include/MCF5475.h @@ -46,6 +46,16 @@ extern "C" { * linker symbols must be defined in the linker command file. */ +#ifdef __GNUC__ +/* get rid of the __declspec() keyword */ +#undef __declspec +#define __declspec(a) /* */ + +/* the same for "far" */ +#undef far +#define far /* */ +#endif + extern __declspec(system) uint8 __MBAR[]; extern __declspec(system) uint8 __MMUBAR[]; extern __declspec(system) uint8 __RAMBAR0[];