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 2451

Summary: SDL_platform.h requires nonexistent <winapifamily.h>
Product: SDL Reporter: Andrew Church <achurch+sdl>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: hayes.gr, philipp.wiesemann, Shaylan_Mackay, zeus112233
Version: 2.0.3   
Hardware: x86_64   
OS: Windows (All)   
See Also: https://bugzilla.libsdl.org/show_bug.cgi?id=3385

Description Andrew Church 2014-03-16 12:16:51 UTC
When trying to cross-build a Win32 binary from Linux using the MinGW runtime, building fails at #include <SDL.h> because SDL_platform.h requires the nonexistent file <winapifamily.h>.

I haven't tested building natively on Windows, but my MinGW installation there has no "winapifamily.h" so I would expect it to fail in the same way.

This is a regression from SDL 2.0.2.
Comment 1 Sam Lantinga 2014-04-18 05:37:38 UTC
This is fixed for 2.0.4, thanks!
Comment 2 Sam Lantinga 2014-04-18 05:55:47 UTC
*** Bug 2466 has been marked as a duplicate of this bug. ***
Comment 3 Shaylan Mackay 2014-04-22 06:36:09 UTC
I'm having the same problem as Andrew is. But for me it only complains about 
winapifamily.h file only ,after I was done installing windows 8 sdk which has the missing file I told codeblocks where it's installed at and still it won't let me compile my projects on windows 7 pro at all 

I've also tried this altered Sdl_platform.h file from

https://www.dropbox.com/s/dm5lto9qlyfc418/SDL_platform.h

and still it doesn't work 

and then it would pop a line that has something to do with visual studio only
when in fact i'm only using codeblocks default gcc mingw32 compiler only