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 841 - testpalette error compiling with Open Watcom
Summary: testpalette error compiling with Open Watcom
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: x86 Windows (All)
: P2 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 03:01 UTC by Daniele Forghieri
Modified: 2009-12-16 22:08 UTC (History)
0 users

See Also:


Attachments
Move SDL.H before the definition of PI (434 bytes, patch)
2009-10-12 03:01 UTC, Daniele Forghieri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Forghieri 2009-10-12 03:01:43 UTC
Created attachment 413 [details]
Move SDL.H before the definition of PI

In testpalette.c M_PI is defined before SDL.H in included.

With Open Watcom the redefinition of M_PI gives an error because the definition
is different.

This patch simply move the include before the definiton of M_PI: if is already
defined is not re-defined and there is non error.
Comment 1 Sam Lantinga 2009-12-16 22:08:38 UTC
This is fixed in subversion with revision 5424.

Thanks!