Skip to content

Commit

Permalink
Merge pull request #2159 from jceipek/fix-stb-darwin-lib-refs
Browse files Browse the repository at this point in the history
Fix STB lib import references on `ODIN_OS == .Darwin`
  • Loading branch information
Kelimion authored Oct 30, 2022
2 parents cee847a + ee89c04 commit 2cd895c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vendor/stb/rect_pack/stb_rect_pack.odin
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import c "core:c/libc"

when ODIN_OS == .Windows { foreign import lib "../lib/stb_rect_pack.lib" }
when ODIN_OS == .Linux { foreign import lib "../lib/stb_rect_pack.a" }
when ODIN_OS == .Darwin { foreign import lib "../lib/stb_rect_pack.a" }
when ODIN_OS == .Darwin { foreign import lib "../lib/darwin/stb_rect_pack.a" }

Coord :: distinct c.int
_MAXVAL :: max(Coord)
Expand Down
2 changes: 1 addition & 1 deletion vendor/stb/truetype/stb_truetype.odin
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import stbrp "vendor:stb/rect_pack"

when ODIN_OS == .Windows { foreign import stbtt "../lib/stb_truetype.lib" }
when ODIN_OS == .Linux { foreign import stbtt "../lib/stb_truetype.a" }
when ODIN_OS == .Darwin { foreign import stbtt "../lib/stb_truetype.a" }
when ODIN_OS == .Darwin { foreign import stbtt "../lib/darwin/stb_truetype.a" }


///////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion vendor/stb/vorbis/stb_vorbis.odin
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import c "core:c/libc"

when ODIN_OS == .Windows { foreign import lib "../lib/stb_vorbis.lib" }
when ODIN_OS == .Linux { foreign import lib "../lib/stb_vorbis.a" }
when ODIN_OS == .Darwin { foreign import lib "../lib/stb_vorbis.a" }
when ODIN_OS == .Darwin { foreign import lib "../lib/darwin/stb_vorbis.a" }



Expand Down

0 comments on commit 2cd895c

Please sign in to comment.