From 3694968d0d0ff9fd663ee95eb3893625cc1c7c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Fri, 12 Oct 2012 08:38:15 +0000 Subject: [PATCH] --- include/MCF5475.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/MCF5475.h b/include/MCF5475.h index ed275cb..be18fec 100644 --- a/include/MCF5475.h +++ b/include/MCF5475.h @@ -40,6 +40,16 @@ extern "C" { #pragma define_section system ".system" far_absolute RW +/* get rid of __declspec */ +#if __GNUC__ +#undef __declspec +/* the following should work if we had an ELF capable toolchain. Unfortunately, it doesn't + * for the current m68k-atari-mint aoutx toolchain since it does not support the + * __attribute__ ((section("x"))) syntax. + */ +/* #define __declspec(a) __attribute__ ((section ("a"))) */ +#define __declspec(a) /* */ + /*** * MCF5475 Derivative Memory map definitions from linker command files: * __MBAR, __MMUBAR, __RAMBAR0, __RAMBAR0_SIZE, __RAMBAR1, __RAMBAR1_SIZE