Open
Bug 796023
Opened 13 years ago
Updated 3 years ago
Use -DUNICODE and -D_UNICODE everywhere
Categories
(Core :: XPCOM, defect)
Tracking
()
NEW
People
(Reporter: joe, Unassigned)
Details
We currently don't compile with -DUNICODE and -D_UNICODE everywhere, which can lead to problems when we compile one piece of code that exports a Windows type (like LOGFONT) with the define, and use it elsewhere without the define. This happens when the definition of code includes the chromium-config.mk file, but the user of that code doesn't.
We should just globally define -DUNICODE and -D_UNICODE everywhere on Windows.
Comment 1•13 years ago
|
||
We have to sanity check that we're not using non-W-prefixed APIs that would break with this. I *think* we're probably okay at this point, and any errors would just be compile errors.
Comment 2•13 years ago
|
||
wtf, I could have sworn we did this years ago.
Note that there are a few places which *remove* -DUNICODE from the build flags: gfx/gl/Makefile.in and gfx/thebes/Makefile.in
| Reporter | ||
Comment 3•13 years ago
|
||
It's entirely possible we do this everywhere except gfx/; I know for certain that including chromium-config.mk in gfx/2d caused types to change due to -DUNICODE, though.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•