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

Use POSIX implementation if platform is not Windows #684

Merged
merged 1 commit into from Mar 30, 2023

Conversation

lawadr
Copy link
Contributor

@lawadr lawadr commented Mar 28, 2023

Non-UNIX platforms may support POSIX, partly or fully, through a compatibility layer of some kind. If a non-Windows platform does not have the UNIX CMake variable set, take the POSIX path through the CMake anyway.

Previously, for platforms without the WIN32 or UNIX variables set, the binaries would fail to link due to missing mz_strm_os_*.c and mz_os_*.c implementations. This change opens up POSIX support for platforms that fall through the crack without changing any logic for platforms that could previously be built for.

@nmoinvaz nmoinvaz changed the base branch from master to develop March 28, 2023 18:07
@nmoinvaz
Copy link
Member

Looks like there are conflicts with develop branch.

Non-UNIX platforms may support POSIX, partly or fully, through a
compatibility layer of some kind. If a non-Windows platform does not
have the UNIX CMake variable set, take the POSIX path through the CMake
anyway.
@nmoinvaz nmoinvaz merged commit 944b6aa into zlib-ng:develop Mar 30, 2023
26 of 27 checks passed
@lawadr lawadr deleted the platform-fallthrough-fix branch March 30, 2023 10:23
@nmoinvaz nmoinvaz added the build system Build system and script changes label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Build system and script changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants