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 build on big-endian platforms #652

Merged
merged 1 commit into from
Dec 13, 2019
Merged

Fix build on big-endian platforms #652

merged 1 commit into from
Dec 13, 2019

Conversation

pkubaj
Copy link
Contributor

@pkubaj pkubaj commented Dec 2, 2019

SDL_Swap32() and SDL_Swap16() are defined in SDL_endian.h.

SDL_Swap32() and SDL_Swap16() are defined in SDL_endian.h.
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Dec 2, 2019
SDL_Swap32() and SDL_Swap16() are defined in SDL_endian.h.

PR:             242360
Approved by:    amdmi3 (maintainer), mentors (implicit approval)
Pull Request:   ValyriaTear/ValyriaTear#652


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@518858 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Dec 2, 2019
SDL_Swap32() and SDL_Swap16() are defined in SDL_endian.h.

PR:             242360
Approved by:    amdmi3 (maintainer), mentors (implicit approval)
Pull Request:   ValyriaTear/ValyriaTear#652
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this pull request Dec 2, 2019
SDL_Swap32() and SDL_Swap16() are defined in SDL_endian.h.

PR:             242360
Approved by:    amdmi3 (maintainer), mentors (implicit approval)
Pull Request:   ValyriaTear/ValyriaTear#652


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@518858 35697150-7ecd-e111-bb59-0022644237b5
@Bertram25 Bertram25 self-assigned this Dec 13, 2019
@Bertram25
Copy link
Member

tested and looks fine. thanks!

@Bertram25 Bertram25 merged commit b53df2a into ValyriaTear:master Dec 13, 2019
@ghost
Copy link

ghost commented Jan 4, 2020

not sure if it's useful, but why not using [nh]to[nh][ls] functions? Those are C standard functions that aim at making things easier. Basically, consider everything read as if it was read from network (so, n(etwork)toh(ost){l(ong)|s(hort)}) for reading data, and invert n&h for writing? I don't think the save/load performance impact would be big, and it might makes things less dependent on non-standard libraries.

@Bertram25
Copy link
Member

@bmorel looks overkill. This is truely more the goal of SDL and such libs as far as I can see.
that said, would you have an example of code and usage?

@ghost
Copy link

ghost commented Jan 9, 2020 via email

svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
SDL_Swap32() and SDL_Swap16() are defined in SDL_endian.h.

PR:             242360
Approved by:    amdmi3 (maintainer), mentors (implicit approval)
Pull Request:   ValyriaTear/ValyriaTear#652
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.

None yet

2 participants