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

Summary: testpalette error compiling with Open Watcom
Product: SDL Reporter: Daniele Forghieri <ow_sdl>
Component: *don't know*Assignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows (All)   
Attachments: Move SDL.H before the definition of PI

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!