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 4552

Summary: Port to Windows
Product: sdl12-compat Reporter: Ryan C. Gordon <icculus>
Component: everythingAssignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: rohitnirmal9
Version: unspecified   
Hardware: x86   
OS: Other   

Description Ryan C. Gordon 2019-03-13 19:45:13 UTC
Most of the sdl12-compat code will work out of the box on Windows, but I probably need to sort out the SDL_main politics.

--ryan.
Comment 1 Rohit Nirmal 2019-03-14 17:13:16 UTC
A few notes:

1. CloseSDL20Library() for _WINDOWS has an extra open bracket that causes compile errors.
2. On MinGW, _WINDOWS is not defined, causing the #error to trigger.
3. stdio.h needs to be #included for stderr.
4. stdlib.h needs to be #included to avoid an implicit declaration warning for abort().
5. On MinGW, SDL20_CreateMutex and SDL20_CreateSemaphore are undefined for some reason. As a quick fix, I changed them to SDL20_SYM from SDL20_SYM_PASSTHROUGH in SDL20_syms.h and created SDL_CreateMutex and SDL_CreateSemaphore functions in SDL12_compat.c to simply call them.