mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #55] [CLOSED] Windows (MSVC): no POSIX setenv() - a _putenv_s shim for the --kv int8 call #304
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/55
Author: @noahark
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:win-setenv-shim📝 Commits (1)
06a08e4Windows (MSVC): no POSIX setenv(); a _putenv_s shim for the --kv int8 call in generate.cpp📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
src/program/generate.cpp(+7 -0)📄 Description
What
src/program/generate.cppcalls POSIXsetenv()in the new--kv int8path (#41, v1.0.21). MSVC has nosetenv, so v1.0.21 does not compile on Windows:This adds a small
_WIN32shim (_putenv_s) above the includes._putenv_salways overwrites, which only differs fromsetenv(..., 0)when an existing value must survive - not the case at this call site (the value is the constant"1", and the env var is not expected to be preset).Verified
ninjavia the installer's build step - the engine and the vision encoder both compile and the server runs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.