On Mon, Mar 05, 2012 at 01:12:47PM -0000, Patrick Ohly wrote: > From: Patrick Ohly <patrick.ohly@xxxxxxxxx> > Date: Mon, 16 Jan 2012 10:58:44 +0100 > Subject: [PATCH] bluetooth.h: fix typecast and typeof compile issue when used > in C++ > > … > > Another issue in combination with -std=c++0x is the use of typeof, > which is not a standard C++ feature and thus gets rejected in strict > mode. > > This patch keeps the "struct __attribute__((packed))" magic and merely > changes the typecast so that it works in C and C++. typeof gets replaced > with __typeof__. This patch seems to have never made it into bluez, and I just bumped into the typeof/__typeof__ issue again today. I could not find any comments in the mailing list explaining if or why the patch was rejected, so perhaps it just fell through the cracks? Is there any chance of getting it accepted? Cheers, Trevor -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Attachment:
signature.asc
Description: OpenPGP digital signature