Skip to content

zmesh, zphysics, and ztracy changes for building for x86_64-windows-msvc #725

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

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

kcbanner
Copy link
Contributor

@kcbanner kcbanner commented Oct 26, 2024

A few changes for compiling for x86_64-windows-msvc.

  • zmesh: use the new @extern field, .is_dll_import, to link the memory allocation functions from a shared library with the -msvc ABI
  • zphysics: fix compilation errors on msvc
  • zphysics: fix the definition of JPC_CharacterBaseSettings to account for an MSVC padding quirk
  • ztracy: fix compilation under .msvc (define fileno -> _fileno and fixup export / import defines)
  • zglfw: add iconify callback (this is unrelated to msvc but I noticed I had this change locally while upstreaming)

The zmesh change depends on a zig version that includes ziglang/zig#21758 (the change I made to add .is_dll_import). This change is included with the latest zig tarballs.

zmesh: use the new @extern field, .is_dll_import, to link the memory allocation functions from a shared library with the -msvc ABI
zphysics: fix compilation errors on msvc
zphysics: fix the definition of JPC_CharacterBaseSettings to account for an MSVC padding quirk
ztracy: fix compilation under .msvc (define `fileno` -> `_fileno` and fixup export / import defines)
@hazeycode hazeycode merged commit fe94674 into zig-gamedev:zig-0.14.0 Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants