Skip to content

Commit

Permalink
Added pre-processor checks for Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Bhavye Mathur <[email protected]>
  • Loading branch information
BhavyeMathur committed Mar 28, 2024
1 parent db6fde8 commit 7e85670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/gp.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
#define or ||
#define and &&

#elif defined(__linux__) || defined(__gnu_linux__)

#define GP_USING_GLAD true
#define GP_BUILDING_WINDOWS false

#else

#define GP_USING_GLAD false
Expand Down
2 changes: 1 addition & 1 deletion tools/release-macos.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ cibuildwheel --platform macos
twine check wheelhouse/*
twine upload -r testpypi wheelhouse/*

twine upload dist/*
twine upload wheelhouse/*

0 comments on commit 7e85670

Please sign in to comment.