SDL-mirror/include
Sam Lantinga 0754901ca9 Fixed bug 1983 - SDL_thread.h broken under MinGW crosscompiling environment
q66

after updating SDL2 to the latest RC I'm unable to build my game engine under mingw crosscompiling environment for Windows (32bit, hosted on freebsd 64bit).

The error is in SDL_thread.h with messages like this: http://codepad.org/jEQXd3Yq

The problem is, while _beginthreadex return type is correctly mapped to uintptr_t (as specified by Microsoft), the return type under mingw is unsigned long int (same size, different signature), resulting in the error above.

The reason it didn't error before is this: http://codepad.org/8FAbKAxz

You can see the _beginthreadex case is only used without HAVE_LIBC defined; at one point though, SDL_config_windows.h was changed like this:

-/* Enabled for SDL 1.2 (binary compatibility) */
-#define HAVE_LIBC     1
+/* This is disabled by default to avoid C runtime dependencies and manifest requirements */

resulting in these errors.
2013-07-27 03:44:03 -07:00
..
begin_code.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
close_code.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
doxyfile Remove / update references to 1.2. 2013-06-27 17:07:24 -07:00
SDL.h Corrected name of constant in header file comment. 2013-07-07 16:15:21 +02:00
SDL_assert.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_atomic.h Added PowerPC and ARM versions of the memory barrier functions. 2013-07-10 20:17:20 -07:00
SDL_audio.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_bits.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_blendmode.h Updated blend semantics so blending uses the following formula: 2013-07-23 08:06:49 -07:00
SDL_clipboard.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_config.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_config.h.cmake Added an SDL2 OpenBSD sndio(7) audio target. 2013-07-07 02:03:07 -04:00
SDL_config.h.in Fixed Azamat's patch for SIZEOF_VOIDP in SDL_config.h.in 2013-07-11 23:16:47 -07:00
SDL_config_android.h Fixed bug 1911 - enable HAVE_GCC_ATOMICS for android platform 2013-07-06 12:39:56 -07:00
SDL_config_iphoneos.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_config_macosx.h Mac: Codify SDK and OS requirements, and clean up. 2013-07-23 17:38:59 -07:00
SDL_config_minimal.h Fixed SDL building with the minimal configuration 2013-06-13 22:10:10 -07:00
SDL_config_pandora.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_config_psp.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_config_windows.h Added a comment to say why C runtime is off by default 2013-05-26 16:08:15 -07:00
SDL_config_wiz.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_copying.h Happy New Year! 2013-02-15 08:47:44 -08:00
SDL_cpuinfo.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_endian.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_error.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_events.h Changed comment to be used by doxygen. 2013-06-16 12:00:54 +02:00
SDL_gamecontroller.h Added SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS to the documentation for the joystick and game controller APIs 2013-07-03 12:31:40 -07:00
SDL_gesture.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_haptic.h Fixed doxygen warnings and corrected documentation in header files. 2013-06-05 23:33:15 +02:00
SDL_hints.h Added a hint to control the Windows timer resolution: SDL_HINT_TIMER_RESOLUTION 2013-07-13 03:13:41 -07:00
SDL_joystick.h Added SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS to the documentation for the joystick and game controller APIs 2013-07-03 12:31:40 -07:00
SDL_keyboard.h Fixed bug 1916 - SDL_Keysym contains a deprecated field for unicode which may be removed. 2013-06-18 00:39:47 -07:00
SDL_keycode.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_loadso.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_log.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_main.h Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady(). 2013-06-28 22:44:49 -07:00
SDL_messagebox.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_mouse.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_mutex.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_name.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_opengl.h Fixed Haiku build issue with missing extension support. 2013-05-21 22:48:50 -07:00
SDL_opengles.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_opengles2.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_pixels.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_platform.h Mac: Codify SDK and OS requirements, and clean up. 2013-07-23 17:38:59 -07:00
SDL_power.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_quit.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_rect.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_render.h When the window is resized, the viewport is automatically reset. 2013-05-29 03:22:19 -07:00
SDL_revision.h Unofficial builds should have a 0 revision number - if this accidentally gets checked in with a different revision, this file should be reverted to this content. 2012-01-14 13:17:01 -05:00
SDL_rwops.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_scancode.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_shape.h Changed documentation comment for SDL_CreateShapedWindow(). 2013-07-20 21:55:15 +02:00
SDL_stdinc.h Made the SDL_memset4() comment even clearer so we don't accidentally replace it with memset() in the future. 2013-07-09 08:01:40 -07:00
SDL_surface.h Updated blend semantics so blending uses the following formula: 2013-07-23 08:06:49 -07:00
SDL_system.h Changed documentation in header because LocalReferenceHolder not public API. 2013-06-02 14:27:54 +02:00
SDL_syswm.h Fixed code example for SDL_GetWindowWMInfo() 2013-07-14 11:57:01 -07:00
SDL_test.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_assert.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_common.h When the window is resized, the viewport is automatically reset. 2013-05-29 03:22:19 -07:00
SDL_test_compare.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_crc32.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_font.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_fuzzer.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_harness.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_images.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_log.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_md5.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_test_random.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_thread.h Fixed bug 1983 - SDL_thread.h broken under MinGW crosscompiling environment 2013-07-27 03:44:03 -07:00
SDL_timer.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_touch.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_types.h Backout hg changset 898992405fa7; lots of things still use SDL_types.h. :/ 2013-07-09 11:57:32 -04:00
SDL_version.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_video.h Fix #1667: Docs about SDL_CreateWindow and flags. 2013-07-14 15:46:43 -07:00