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 3585

Summary: Can't build on MinGW (non-x64) because of lack of REFIID
Product: SDL Reporter: Vitaly Novichkov <admin>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: HG 2.1   
Hardware: x86   
OS: Windows 7   

Description Vitaly Novichkov 2017-02-13 23:27:45 UTC
When I have been retreived latest revision (b2d018b8d9ba at February 14 2017), and tried to build it everywhere (Linux, OS X and Windows), it fails to be build under regular non-w64 MinGW:

========================================================================
In file included from src/SDL.c:24:0:
src/core/windows/SDL_windows.h:67:28: error: unknown type name 'REFIID'
 extern BOOL WIN_IsEqualIID(REFIID a, REFIID b);
                            ^
src/core/windows/SDL_windows.h:67:38: error: unknown type name 'REFIID'
 extern BOOL WIN_IsEqualIID(REFIID a, REFIID b);
                                      ^
make: *** [build/SDL.lo] Error 1
========================================================================

Commenting of the 67's line fixes the build. Suggested to add macro to don't use this declaration on MinGW.org's MinGW.
Comment 1 Sam Lantinga 2017-08-11 17:49:27 UTC
I believe this is fixed now, thanks!