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 2349

Summary: [patch] Fix SDL build on Haiku
Product: SDL Reporter: Alexander von Gluck IV <kallisti5>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Haiku   
Attachments: patch to remove all <be/*> includes

Description Alexander von Gluck IV 2014-01-15 17:44:56 UTC
SDL references a lot of BeOS headers in be/*, this isn't very portable and is unneeded as be/*/* are all in the gcc search paths.

This patch makes SDL more portable and compile equally well on BeOS vs Haiku
Comment 1 Alexander von Gluck IV 2014-01-15 17:46:25 UTC
Created attachment 1522 [details]
patch to remove all <be/*> includes
Comment 2 Ryan C. Gordon 2014-02-28 18:42:06 UTC
Comment on attachment 1522 [details]
patch to remove all <be/*> includes

I don't know, I'm a little nervous about losing the "namespace" on those includes (especially the "String.h" one, even if Haiku's filesystem is case-sensitive).

--ryan.
Comment 3 Ryan C. Gordon 2018-08-07 21:35:16 UTC
This got applied at some point. (although the video functions are still BE_funcname instead of HAIKU_funcname...)

--ryan.
Comment 4 Ryan C. Gordon 2018-08-07 22:57:32 UTC
(In reply to Ryan C. Gordon from comment #3)
> This got applied at some point. (although the video functions are still
> BE_funcname instead of HAIKU_funcname...)

This is fixed in https://hg.libsdl.org/SDL/rev/09999a0e8f9a. Resolving bug!

--ryan.