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 - Compiler-error with sun-compiler - redefine of __inline__ illegal
Summary: Compiler-error with sun-compiler - redefine of __inline__ illegal
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 1.2
Hardware: x86 Linux
: P1 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-12 09:15 UTC by Wolfgang Dautermann
Modified: 2007-06-15 00:21 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 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.