Repository navigation
util: Move platform-file and profiler-io host branches into host files (#874) - #2419
Merged
Merged
Conversation
zackees
enabled auto-merge
October 25, 2026 19:48
Member
Author
|
Coordinator review: the POSIX and Windows bodies are the old branches moved out unchanged, and One behaviour note, which looks intended and is worth confirming: |
6 of 7 tasks
Member
Author
Member
Author
|
CI status: both failures look unrelated to this PR.
I'll rebase once #2420 merges and recheck the Linux test. |
zackees
force-pushed
the
util/874-platform-file-host
branch
from
October 25, 2026 20:41
8d4a3cb to
a434973
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #874.
This moves the last 6 host conditionals in
libobs/util/platform-file.c.h(5) andprofiler-io.c.h(1) into host files. #2016 already removed the seventh.Changes
platform-file-host-windows.c.hholds the MSVC-CRT bodies ofos_wfopen,os_fopen,os_stat,os_fseeki64andos_ftelli64.platform-file-host-posix.c.hholds the UTF-8/fseeko/ftelloones.profiler-io.c.hnow calls a privateprofiler_gzopen(declared inutil/profiler-io-host.h, not exported).profiler-io-host-windows.c.h(gzopen_w) andprofiler-io-host-posix.c.h(gzopen) implement it.libobs.ported-windows-platform+andlibobs.ported-posix+, which have the same build set asported-platform+andported-profiler-io+. The PCHs gainzlib.hand the private header.oracle/platform.candoracle/profiler_io.cinclude the matching host bodies, andprofiler_gzopenis renamed tooracle_profiler_gzopen._wfopen,_fseeki64and_ftelli64. So the oracle keepsoracle_os_fopenthere, and it now matches real Windows libobs.ci/platform-ifdef-baseline.jsondrops both files, 6 findings in all.Evidence
test: ... (RED, #874)):ci/test_libobs_util_facade.pyfails 3 new cases on master. GREEN: they pass.cmake/cross/docker.sh win-x64 mac-arm64exits 0.ported-windows-platform+,ported-posix+,ported-platform+andported-profiler-io+all compiled.profiler_gzopen's return type. This PR'sCross Compilejob covers the final tree.soldr cargo test -p obs-util --lib -- platform_file profiler_ioin a clean clone: 78 passed, 0 failed. That coversplatform_file_parityand the profiler-io parity tests against the oracle.util: profiler_gzopen returns zlib's gzFile.