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

COMMON: Don't attempt to guess host endianness if it has been set previously #1238

Closed
wants to merge 1 commit into from

Conversation

ccawley2011
Copy link
Member

No description provided.

@bonki
Copy link
Member

bonki commented Jul 2, 2018

Under which circumstances would this trigger? Where else would these be defined if not in config.h or inside this very if?

@ccawley2011
Copy link
Member Author

ccawley2011 commented Jul 2, 2018

This is to allow the possibility of defining these in portdefs.h

@bonki
Copy link
Member

bonki commented Jul 4, 2018

Maybe we should migrate the whole construct to portdefs.h instead and mandate that all platforms provide one instead of introducing a third place where these can be defined? There are other things in scummsys.h which could/should be moved to portdefs.h and doing so would make ports more self-contained and scummsys.h less cluttered and a bit more maintainable.

Is there a good reason not to do this?

@digitall
Copy link
Member

digitall commented Oct 4, 2018

@bonki : If we are going to migrate to all ports having a portsdef.h then wouldn't adding this change provide a first step in migrating each of the platforms over? If so, then adding this change should probably be done in either case.

@bluegr
Copy link
Member

bluegr commented Dec 25, 2018

I concur with @bonki on this, we should either migrate to all ports having a portsdef.h, or keep things as they are.

At the moment, this pull request does not offer any noteworthy change on its own, so it should either be expanded with changes to portsdefs.h, or closed.

@bluegr
Copy link
Member

bluegr commented Apr 9, 2019

Three months later... any update on this?

@bluegr
Copy link
Member

bluegr commented May 1, 2019

As mentioned, this pull request does not offer any notable change on its own. If we move the host endianness defines in portdefs.h in the future, we can revisit this change.

Until then, we might decide on a different way of detecting whether to run this code or not. As it stands, this pull request is just a suggestion, for a feature that isn’t done in the suggested way.

Therefore, I’m closing this

@bluegr bluegr closed this May 1, 2019
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.

4 participants