Thread (3 messages) 3 messages, 3 authors, 2012-07-27

Re: [PATCH] bluetooth.h: fix compile issue when using in C++

From: W. Trevor King <hidden>
Date: 2012-07-27 16:38:53

On Mon, Mar 05, 2012 at 01:12:47PM -0000, Patrick Ohly wrote:
From: Patrick Ohly <redacted>
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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help