Linux build: hos_paths.h includes the POSIX windows.h for its Linux hos_game_path_a #642
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!642
Loading…
Reference in a new issue
No description provided.
Delete branch "linux-hos-paths"
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?
Since
81f2084("Game folder: hookshot.exe is the launcher; the game and its DLLs are in bin\") the Linux build stops in every host file that includeshos_paths.hbefore<windows.h>(hos_main.c, mods.c, nn_applet.c, ...):The header's
#ifdef _WIN32branch includes<windows.h>, but the Linux branch usesDWORDandGetModuleFileNameAwithout it. The Linux branch now includes<windows.h>too (on Linux that is host/posix's, which has an include guard), so the order of includes in the .c files no longer matters. Windows is unchanged.Tested: a full Linux build of current main with this change completes and the game reaches play.