[Bug preprocessor/40376] New: GCC defines UNICODE instead of _UNICODE for -municode
nightstrike at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 8 04:27:00 GMT 2009
The new option -municode incorrectly defines UNICODE. Instead, it should
define _UNICODE. Jon_Y provided the following suggestion for a fix:
Index: gcc/config/i386/mingw-w64.h
===================================================================
--- gcc/config/i386/mingw-w64.h (revision 148266)
+++ gcc/config/i386/mingw-w64.h (working copy)
@@ -24,7 +24,7 @@
#undef CPP_SPEC
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \
- %{municode:-DUNICODE}"
+ %{municode:-D_UNICODE}"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
--
Summary: GCC defines UNICODE instead of _UNICODE for -municode
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nightstrike at gmail dot com
GCC target triplet: *-w64-mingw*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40376
More information about the Gcc-bugs
mailing list