Hi,
Yes, I thought of that too; I don't want to change the project structure
though. For now I'm happy with changing interface_implementation.h locally.
This should actually be fixed in GCC :)
Sorin
Ville Syrjälä wrote:
On Wed, Apr 08, 2009 at 06:05:11PM +0300, Sorin Otescu wrote:
Hi,
I've noticed that commit 7e032d95f71442b42c821e874a26099112f4917b (from 26
jan. 2008 !) introduces a change to the way struct members are initialized.
The comment was:
MODULES: Use standard syntax for initialization of struct members in
headers.
The change is from:
struct some_struct {
member : value
}
to
struct some_struct {
.member=value
}
This (although correct) has the unfortunate effect of breaking C++ module
builds (of which I have a few) because g++ DOESN'T accept this [C99
standard] type of initialization in <direct/interface_implementation.h>
even if surrounded with extern "C".
Is there a workaround?
As a proper fix you could probably split the interface funcs stuff from
your C++ source file into a C source file.
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev