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 434

Summary: Compiler-error with sun-compiler - redefine of __inline__ illegal
Product: SDL Reporter: Wolfgang Dautermann <dauti>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P1    
Version: HG 1.2   
Hardware: x86   
OS: Linux   

Description Wolfgang Dautermann 2007-06-12 09:15:45 UTC
The SUN-Compiler (Sun studio 12 on Linux, probably also on solaris) gives the following error, when trying to compile a program which uses SDL:

"/usr/include/SDL/begin_code.h", line 126: Error: #define and #undef are
not legal for predefined macros.

(There are some compiler-exceptions defined, for which __inline__ is not redefined, the sun-compiler should be
included there (see http://predef.sourceforge.net/precomp.html#sec43)).

Best regards, Wolfgang
Comment 1 Ryan C. Gordon 2007-06-13 02:19:00 UTC
Flagging as P1 so we consider it for the upcoming 1.2.12 release.

--ryan.

Comment 2 Ryan C. Gordon 2007-06-15 00:21:32 UTC
Fixed in svn revision #3076 for the 1.2 branch, and #3077 for the 1.3 branch.

Thanks!

--ryan.