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 2048

Summary: C89 Compliance
Product: SDL Reporter: Gabriel Jacobo <gabomdq>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: C89 compliance log

Description Gabriel Jacobo 2013-08-20 23:41:15 UTC
Created attachment 1300 [details]
C89 compliance log

LANG="en_US" CC="/usr/bin/gcc -std=c89" make -j4 -i | grep error:

See attached log.

The SDL_quit.c error is fixed by adding #include <bits/sigaction.h> on my system. I don't know if we have to detect that on the configure script or if HAVE_SIGNAL_H is sufficient to include it.
Comment 1 Gabriel Jacobo 2013-08-21 13:41:16 UTC
Turns out we use inline which is not in the C89 spec (among other things), so we'll make do with "compatible with Visual C and GCC 3+"