Skip to content

Conversation

robxnano
Copy link

The current path separator code causes compilation failures in Haiku, which uses Unix-style path separators but doesn't define the __unix__ macro. Instead of just adding __HAIKU__, this makes Unix-style the default fallback since the majority of platforms use it and the previous fallback would never work correctly anyway.

Instead of doing nothing, fall back to Unix-style if no known
definition is found so that new platforms are more likely to work
by default. Some operating systems like Haiku use Unix path
separators but don't define the __unix__ preprocessor directive.
@hpax
Copy link
Member

hpax commented May 31, 2024

I'm a bit concerned about this, since who knows what kind of weird platforms might break from this.
Then again, perhaps more platforms will work than not.
Does Haiku support autoconf?

@robxnano
Copy link
Author

Sorry I forgot about this. I understand your concern about changing the behavior without knowing what effect it might have on other platforms. If you'd prefer I could make another request to just add the __HAIKU__ macro with the other Unix-like platforms.

@robxnano
Copy link
Author

Closing this as the Haiku fix was added in af0430f.

@robxnano robxnano closed this Aug 19, 2025
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