[Bug ada/58299] New: Ada defines UNICODE and _UNICODE too late for __MINGW32__
earnie at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Mon Sep 2 14:51:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58299
Bug ID: 58299
Summary: Ada defines UNICODE and _UNICODE too late for
__MINGW32__
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: earnie at users dot sourceforge.net
Created attachment 30741
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30741&action=edit
Ada patch for MinGW 4.0
When building gcc-4.8.1 for MinGW 4.0 release I discovered that the private
_mingw.h file was included and that UNICODE and _UNICODE were defined after
headers had already been included. This caused a result of UNICODE declared
data being passed to ANSI version functions. The fix was to simply move the
inclusion of the "mingw32.h" file in the source of ada/initialize.c and to
remove the inclusion of the private ada/_mingw.h file in mingw32.h. The patch
I used is attached.
More information about the Gcc-bugs
mailing list