Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rtextures): TCC not being able to compile due to: 'emmintrin.h' not found #4707

Merged

Conversation

sleeptightAnsiC
Copy link
Contributor

@sleeptightAnsiC sleeptightAnsiC commented Jan 19, 2025

Define STBIR_NO_SIMD when __TINYC__ is defined so stb_image_resize2 will not include *mmintrin headers which are not supported by all compilers.

There are similar checks for __TINYC__ already elsewhere in raylib and they are also mostly there to disable SIMD headers.

Additionally, move similar check for stb_image, to be a little bit deeper. Before it was defining STBI_NO_SIMD without including stb_image itself. It was also clashing with note, causing said note to make no sense.

Fixes: #2994
Reference: nothings/stb#1738

…ot found

define STBIR_NO_SIMD when __TINYC__ is defined so stb_image_resize2 will
not include *mmintrin which are not supported by all compilers.

There are similar checks for __TINYC__ already elswere in raylib
and they are also mostly there to disable SIMD headers.

Additionally, move similar check for stb_image, to be a little bit
deeper. Before it was defining STBI_NO_SIMD without including stb_image
It was also clashing with note, causing said note to make no sense.

Fixes: raysan5#2994
Reference: nothings/stb#1738
@raysan5 raysan5 merged commit 10d0616 into raysan5:master Jan 19, 2025
@raysan5
Copy link
Owner

raysan5 commented Jan 19, 2025

@sleeptightAnsiC thanks for the review!

ngynkvn pushed a commit to ngynkvn/raylib that referenced this pull request Jan 21, 2025
…ot found (raysan5#4707)

define STBIR_NO_SIMD when __TINYC__ is defined so stb_image_resize2 will
not include *mmintrin which are not supported by all compilers.

There are similar checks for __TINYC__ already elswere in raylib
and they are also mostly there to disable SIMD headers.

Additionally, move similar check for stb_image, to be a little bit
deeper. Before it was defining STBI_NO_SIMD without including stb_image
It was also clashing with note, causing said note to make no sense.

Fixes: raysan5#2994
Reference: nothings/stb#1738
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants