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

OpenBSD: fix endianness detection #7996

Merged
merged 1 commit into from Feb 11, 2020
Merged

OpenBSD: fix endianness detection #7996

merged 1 commit into from Feb 11, 2020

Conversation

julianaito
Copy link
Contributor

@julianaito julianaito commented Feb 11, 2020

Hi!

@rapenne-s reported to me that OpenTTD colors are off on OpenBSD/macppc (32-bit powerpc). I've found out it's because we don't implement endianness reporting like the rest; __*_ENDIAN and __BYTE_ORDER don't exist out of the box.

This PR adds the appropriate code to fix the issue.

(cc @bentley)

@LordAro
Copy link
Member

LordAro commented Feb 11, 2020

I feel like I should be surprised that there's any OBSD powerpc users at all, but equally I feel I should not be surprised... ;)

If you can fixup the commit message (we're quite strict about this!), I'll merge it in

@LordAro LordAro added the backport requested This PR should be backport to current release (RC / stable) label Feb 11, 2020
@julianaito
Copy link
Contributor Author

I feel like I should be surprised that there's any OBSD powerpc users at all, but equally I feel I should not be surprised... ;)

As many OSes EOL'd 32-bit powerpc support, people are slowly coming to us :)

If you can fixup the commit message (we're quite strict about this!), I'll merge it in

It's done!

Copy link
Contributor

@planetmaker planetmaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, fair enough. Thanks for the PR

@LordAro LordAro merged commit 2196cd3 into OpenTTD:master Feb 11, 2020
@glx22
Copy link
Contributor

glx22 commented Feb 11, 2020

Would be nice if you could check if endian detection works correctly for #7270. I think it should be ok as we rely on cmake, but who knows :)

@LordAro LordAro added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants