aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/Icons.txt
diff options
context:
space:
mode:
authorNicolas Schodet2010-07-06 13:25:39 +0200
committerNicolas Schodet2010-08-20 00:18:21 +0200
commit9e5cc1159a47f6978f1fdbface3c03914875fcdb (patch)
tree5b7af0e282b8e7bb336734f2ada1a33b978afb63 /AT91SAM7S256/Source/Icons.txt
parent3b044ab379a0e6a644a1bba47663f1b92c1df8dc (diff)
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.
Diffstat (limited to 'AT91SAM7S256/Source/Icons.txt')
-rw-r--r--AT91SAM7S256/Source/Icons.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/AT91SAM7S256/Source/Icons.txt b/AT91SAM7S256/Source/Icons.txt
index 0d58409..459b078 100644
--- a/AT91SAM7S256/Source/Icons.txt
+++ b/AT91SAM7S256/Source/Icons.txt
@@ -1,4 +1,4 @@
-const ICON Icons[] =
+DEFINE_DATA(ICON, Icons) =
{
0x04,0x00, // Graphics Format
0x1A,0x70, // Graphics DataSize
@@ -6,6 +6,7 @@ const ICON Icons[] =
0x5E, // Graphics Count Y
0x18, // Graphics Width
0x18, // Graphics Height
+BEGIN_DATA
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -288,4 +289,5 @@ const ICON Icons[] =
0x00,0x00,0x00,0x00,0x80,0x40,0x20,0x10,0x20,0x40,0x80,0xE0,0xE0,0x00,0x80,0x40,0x20,0x10,0x20,0x40,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x79,0x86,0x44,0x28,0x10,0x00,0x01,0x83,0x01,0x00,0x10,0x28,0x44,0xFA,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x10,0x08,0x04,0x0A,0x09,0x08,0x09,0x06,0x04,0x08,0x10,0x08,0x05,0x02,0x00,0x00,0x00
+END_DATA
};