SDL_platform.h

You’re welcome! :)On Tue, Apr 29, 2014 at 11:52 AM, NY00123 wrote:

On 04/29/2014 09:18 PM, Sam Lantinga wrote:

This is fixed in Mercurial for 2.0.4.
https://hg.libsdl.org/SDL/rev/e217ed463f25

Facepalm looks like I’ve looked at the wrong page somewhere…

Thanks for the confirmation!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Probably completely unrelated, but Codeblocks with the default Mingw compiler still gives me the winapifamily.h error, using SDL2 2.0.3 prebuilt libraries.

– Aggelos Kolaitis
– The SDL Utility Library (http://bitbucket.org/sdlu/sdlu)On Apr 29, 2014, at 7:44 PM, NY00123 wrote:

Note: This is a reply to an earlier mailing list discussion, eventually leading to this commit (winapifamily.h related fix) which is now in 2.0.3:

https://hg.libsdl.org/SDL/rev/a98cd2320e82

So, first of all, thanks for applying the fix!

I’m afraid that I still get compilations errors with MinGW (mingw32), though (Yeah, I know MinGW-w64 can be used instead). The toolchain seems to have no ready copy of winapifamily.h. Originally it occurred to me on Ubuntu 12.04 with the stock SDL 2.0.3 header, and it is still the case on Ubuntu 14.04 now.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

neoaggelos wrote:

Probably completely unrelated, but Codeblocks with the default Mingw compiler still gives me the winapifamily.h error, using SDL2 2.0.3 prebuilt libraries.

Here’s a fix you can use until 2.0.4 comes out:

  1. download a fixed copy of SDL_platform.h. A copy of it can be downloaded from http://hg.libsdl.org/SDL/raw-file/e217ed463f25/include/SDL_platform.h
  2. copy the fixed SDL_platform.h into SDL 2.0.3’s include\SDL2\ directory, overwriting the original.

That should be it. If not, let me know. :slight_smile:

Cheers,
– David L.