From 9e5cc1159a47f6978f1fdbface3c03914875fcdb Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 6 Jul 2010 13:25:39 +0200 Subject: gcc: patch *.txt data files, with minimum impact on sources gcc do not allow to store a structure containing a flexible array member in an array. Also, sizeof (s), with s a structure containing a flexible array member will return the offset of the flexible array member, not the actual size. This patch handle those problems with minimum impact on sources. --- AT91SAM7S256/Source/Running.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'AT91SAM7S256/Source/Running.txt') diff --git a/AT91SAM7S256/Source/Running.txt b/AT91SAM7S256/Source/Running.txt index 963e372..6bea492 100644 --- a/AT91SAM7S256/Source/Running.txt +++ b/AT91SAM7S256/Source/Running.txt @@ -1,4 +1,4 @@ -const ICON Running[] = +DEFINE_DATA(ICON, Running) = { 0x04,0x00, // Graphics Format 0x04,0x80, // Graphics DataSize @@ -6,6 +6,7 @@ const ICON Running[] = 0x10, // Graphics Count Y 0x18, // Graphics Width 0x18, // Graphics Height +BEGIN_DATA 0x00,0x00,0x00,0xE0,0xF0,0x38,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x38,0xF0,0xE0,0x00,0x00,0x00, 0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x3C,0x3C,0x3C,0x3C,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00, 0x00,0x00,0x00,0x07,0x0F,0x1C,0x18,0x18,0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,0x18,0x18,0x1C,0x0F,0x07,0x00,0x00,0x00, @@ -54,4 +55,5 @@ const ICON Running[] = 0x00,0x00,0x00,0xE0,0xF0,0x38,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x38,0xF0,0xE0,0x00,0x00,0x00, 0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x3C,0x3C,0x3C,0x3C,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00, 0x00,0x00,0x00,0x07,0x0F,0x1C,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x1C,0x0F,0x07,0x00,0x00,0x00 +END_DATA }; -- cgit v1.2.3