From: Hans de Goede Date: Fri, 2 Mar 2012 15:49:44 +0000 (+0100) Subject: libcacard: Fix compilation with gcc-4.7 X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~4402 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0202181245297a9e847c05f4a18623219d95e93e;p=sdk%2Femulator%2Fqemu.git libcacard: Fix compilation with gcc-4.7 VCARD_ATR_PREFIX is used as part of an array initializer so it should not have () around it, so far this happened to work, but gcc-4.7 does not like it. Signed-off-by: Hans de Goede Signed-off-by: Anthony Liguori --- diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h index d4d8e2e..d3e9522 100644 --- a/libcacard/vcardt.h +++ b/libcacard/vcardt.h @@ -26,8 +26,8 @@ typedef struct VCardEmulStruct VCardEmul; #define MAX_CHANNEL 4 /* create an ATR with appropriate historical bytes */ -#define VCARD_ATR_PREFIX(size) (0x3b, 0x68+(size), 0x00, 0xff, \ - 'V', 'C', 'A', 'R', 'D', '_') +#define VCARD_ATR_PREFIX(size) 0x3b, 0x68+(size), 0x00, 0xff, \ + 'V', 'C', 'A', 'R', 'D', '_' typedef enum {