We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2508

Summary: don't redefine WIN32_LEAN_AND_MEAN
Product: SDL Reporter: Anthony Pesch <inolen>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: jorgen
Version: HG 2.1   
Hardware: x86   
OS: Windows (All)   
Attachments: WIN32_LEAN_AND_MEAN patch

Description Anthony Pesch 2014-04-23 20:44:17 UTC
Created attachment 1632 [details]
WIN32_LEAN_AND_MEAN patch

Just as with NOMINMAX, WIN32_LEAN_AND_MEAN shouldn't be defined if already defined.

Otherwise, this can issue a warning which is problematic with /WX.
Comment 1 Sam Lantinga 2014-04-26 19:38:58 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/7a261af2d612
Comment 2 Jørgen Tjernø 2014-07-01 00:31:03 UTC
Also applied this fix to SDL_syswm.h: https://hg.libsdl.org/SDL/rev/47decd0106f8