[ofw] RE: [PATCH 9/8] [ib-diag] ibping: add support for WinOF

Sean Hefty sean.hefty at intel.com
Tue Feb 17 16:36:06 PST 2009


> 	signal(SIGINT, report);
> 	signal(SIGTERM, report);

Btw - I worked around adding cdecl before main by disabling the warning.  Since
main must be cdecl by default, the compiler fixes it, but spits out a warning.
For some reason unknown to me, the warning only occurs when building 32-bit
apps. 

However, signal() requires that the function be cdecl as well.  The above two
calls fail to compile on 32-bit Windows platforms, so I'm still working on this.
The simple approach of changing the compiler options doesn't work as easily as
it looks like it should.  The WDK build environment is 'special'.

- Sean




More information about the ofw mailing list