Closed
Bug 411102
Opened 17 years ago
Closed 17 years ago
Undefine the LoadImage in nsSVGFilters.cpp instead of the whole user32.dll API
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla1.9beta3
People
(Reporter: Techrazy.Yang, Assigned: Techrazy.Yang)
References
Details
Attachments
(1 file)
843 bytes,
patch
|
tor
:
review+
tor
:
superreview+
tor
:
approval1.9+
|
Details | Diff | Splinter Review |
When I cross build Mozilla trunk today, I find that it failed because the below lines in mozilla/content/svg/content/src/nsSVGFilters.cpp
#if defined(XP_WIN) && !defined(NOUSER)
// Prevent Windows redefining LoadImage
#define NOUSER
#endif
I find that the author want to use this to avoid the conflict between the member function LoadImage used in this file with the Windows version LoadImage macro. But unfortunately, there is no such NOUSRE guard in MinGW w32api, so my build failed. After some thought, I think the following code do the same thing and are more clear than the above lines.
#if defined(XP_WIN)
// Prevent Windows redefining LoadImage
#undef LoadImage
#endif
It undef the LoadImage and do nothing with the other functions defined in winuser.h. I think it does better. So, I submit this little patch. Wish it helps! Any advice will be appreciated! Thanks!
Updated•17 years ago
|
Assignee: nobody → Techrazy.Yang
Updated•17 years ago
|
Attachment #295743 -
Flags: superreview?(tor)
Attachment #295743 -
Flags: review?(tor)
Comment 1•17 years ago
|
||
I think it would be best to remove this code altogether in nsSVGFilters and do something with the windows.h include in /mozilla/gfx/thebes/public/gfxWindowsSurface.h to either undef LoadImage or define NOUSER.
Attachment #295743 -
Flags: superreview?(tor)
Attachment #295743 -
Flags: superreview+
Attachment #295743 -
Flags: review?(tor)
Attachment #295743 -
Flags: review+
Attachment #295743 -
Flags: approval1.9+
Updated•17 years ago
|
Keywords: checkin-needed
Comment 3•17 years ago
|
||
Checking in content/svg/content/src/nsSVGFilters.cpp;
/cvsroot/mozilla/content/svg/content/src/nsSVGFilters.cpp,v <-- nsSVGFilters.cpp
new revision: 1.59; previous revision: 1.58
done
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Summary: [Patch] Undefine the LoadImage in nsSVGFilters.cpp instead of the whole user32.dll API → Undefine the LoadImage in nsSVGFilters.cpp instead of the whole user32.dll API
Target Milestone: --- → mozilla1.9 M11
You need to log in
before you can comment on or make changes to this bug.
Description
•