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 - Can't build on MinGW (non-x64) because of lack of REFIID
Summary: Can't build on MinGW (non-x64) because of lack of REFIID
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: x86 Windows 7
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-13 23:27 UTC by Vitaly Novichkov
Modified: 2017-08-11 17:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!