On Thu, 2011-06-23 at 17:02 +0200, Markus Trippelsdorf wrote:On 2011.06.23 at 09:42 -0400, Nick Bowler wrote:[]On 2011-06-22 08:34 +0200, Markus Trippelsdorf wrote:One possible solution would be to let the "scripts/headers_install.pl"
script automatically substitute __packed with __attribute__((packed)):
diff --git a/scripts/headers_install.pl b/scripts/headers_install.plI'm not an expert of Perl regular expressions, but maybe this:
$line =~ s/\s__packed;$/ __attribute__((packed));/g
is a little bit closer to the intention?
Maybe:
s/\b__packed\b/__attribute__((packed))/g
though this argues against redefining
gcc __attributes__ in the first place.