This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/58299] New: Ada defines UNICODE and _UNICODE too late for __MINGW32__
- From: "earnie at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Sep 2013 14:51:45 +0000
- Subject: [Bug ada/58299] New: Ada defines UNICODE and _UNICODE too late for __MINGW32__
- Auto-submitted: auto-generated
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.