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 - SDL_platform.h requires nonexistent <winapifamily.h>
Summary: SDL_platform.h requires nonexistent <winapifamily.h>
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.3
Hardware: x86_64 Windows (All)
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
: 2466 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-16 12:16 UTC by Andrew Church
Modified: 2016-07-07 19:04 UTC (History)
4 users (show)

See Also:


Attachments

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