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

Fix build issues on Windows #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mhandb
Copy link

@mhandb mhandb commented May 15, 2024

Fixes #3

  • call cmake build steps so it is compatible with Windows and linux
  • protect unix specific includes so they are not included in Windows
  • avoid to link to unix lib in Windows

- call cmake build steps so it is compatible with Windows and linux
- protect unix specific includes so they are not include in Windows
- avoid to link to unix lib in Windows
@mhandb mhandb changed the title Fix build issues on Windows Fix build issues on Windows (Issue #3) May 15, 2024
@mhandb mhandb changed the title Fix build issues on Windows (Issue #3) Fix build issues on Windows May 15, 2024
It allows the project to build for x86 target without changing the glad source code.
Indeed, in windows the default calling convention for x86 is cdecl.
And the glad source code expect some functions to use the stdcall calling convention.
TODO: fix the code to support 32bit builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command 'cmake ..; make -j' returned non-zero exit status 1.
1 participant