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 - SDL 1.3 thread/generic/SDL_systhread.c gives compile error in mingw
Summary: SDL 1.3 thread/generic/SDL_systhread.c gives compile error in mingw
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: thread (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 07:26 UTC by Jonas Thiem
Modified: 2011-05-09 09:02 UTC (History)
0 users

See Also:


Attachments

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