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 4080

Summary: fix building SDL_audiotypecvt.c with gcc < 4.0
Product: SDL Reporter: Ozkan Sezer <sezeroz>
Component: audioAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: gcc3 patch for SDL_audiotypecvt.c

Description Ozkan Sezer 2018-02-12 07:55:01 UTC
Created attachment 3164 [details]
gcc3 patch for SDL_audiotypecvt.c

emmintrin.h from gcc < 4.0 doesn't have the _mm_cast* intrinsics:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19418
The attached patch handles that situation locally in SDL_audiotypecvt.c.
Comment 1 Sam Lantinga 2018-02-13 21:30:12 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/96157e099383