[Bug target/14333] [3.3 Regression] __stdcall in function declaration in structure ignored?
dannysmith at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 28 21:16:00 GMT 2004
------- Additional Comments From dannysmith at gcc dot gnu dot org 2004-02-28 21:16 -------
This is the usual syntax for stdcall callbacks (refer to windows32 api headers,
eg ole.h). It works in 3.3 branch. I didn't think that the syntax you used in
your original example was actually valid.
static void __stdcall example_func(void)
{
}
struct {
void (__stdcall * example_method)(void);
} y = {
.example_method = example_func,
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14333
More information about the Gcc-bugs
mailing list