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 1204

Summary: SDL 1.3 thread/generic/SDL_systhread.c gives compile error in mingw
Product: SDL Reporter: Jonas Thiem <contact>
Component: threadAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Linux   

Description Jonas Thiem 2011-05-09 07:26:26 UTC
When compiling SDL 1.3 with MinGW 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc14) on a Fedora 14 host, there is a conflict in the SDL headers:

cd hg/SDL/src/thread/generic && i686-pc-mingw32-gcc -c *.c -O3 -I/home/jonas/d/avernumclone/sdl1.3/dx80_mgw/ -DSDL_ATOMIC_DISABLED -I/home/jonas/d/avernumclone/sdl1.3/hg/SDL/include
SDL_systhread.c:29:1: error: conflicting types for 'SDL_SYS_CreateThread'
../SDL_systhread.h:35:12: note: previous declaration of 'SDL_SYS_CreateThread' was here

Due to this it is impossible to build SDL 1.3 (all other parts of SDL work flawless without exception).

The hg version is recent as of yesterday.
Comment 1 Jonas Thiem 2011-05-09 09:02:24 UTC
Apparently src/thread/generic/ shouldn't be build for a windows version.. now it finally works :-) sorry for this invalid bug report.