From 7c8d4a1d8de4cb6b56870590a7166018a00c4764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 11 Oct 2012 19:58:39 +0000 Subject: [PATCH] get rid (#undef) far and __declspec --- BaS_GNU/include/MCF5475.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BaS_GNU/include/MCF5475.h b/BaS_GNU/include/MCF5475.h index 8feab2d..ed275cb 100644 --- a/BaS_GNU/include/MCF5475.h +++ b/BaS_GNU/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[];