w32api and gcc -pedantic

egor duda deo@logos-m.ru
Fri Apr 13 12:12:00 GMT 2001


Hi!

  w32api headers currently contain a number of anonymous structs and
unions. So, gcc prints a bunch of warnings when invoked with -pedantic
on program which #include <windows.h>. this patch is to avoid those
warnings.

egor.            mailto:deo@logos-m.ru icq 5165414 fidonet 2:5020/496.19
w32api-pedantic-warnings.diff
w32api-pedantic-warnings.ChangeLog

-------------- next part --------------
2001-04-13  Egor Duda  <deo@logos-m.ru>

	* include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION
	as __extenstion__ when appropriate.
	* include/mmsystem.h: Mark anonymous structs and unions as
	__extension__ to prevent compiler warning when invoked with
	-pedantic
	* include/oaidl.h: Ditto.
	* include/objidl.h: Ditto.
	* include/olectl.h: Ditto.
	* include/prsht.h: Ditto.
	* include/shlobj.h: Ditto.
	* include/winbase.h: Ditto.
	* include/winnt.h: Ditto.
	* include/wtypes.h: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w32api-pedantic-warnings.diff
Type: text/x-diff
Size: 10312 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010413/5b038273/attachment.bin>


More information about the Cygwin-patches mailing list