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 - fix building SDL_audiotypecvt.c with gcc < 4.0
Summary: fix building SDL_audiotypecvt.c with gcc < 4.0
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: HG 2.0
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-12 07:55 UTC by Ozkan Sezer
Modified: 2018-02-13 21:30 UTC (History)
0 users

See Also:


Attachments
gcc3 patch for SDL_audiotypecvt.c (854 bytes, patch)
2018-02-12 07:55 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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