Skip to content

Commit

Permalink
raylib/rlgl: fix foreign imports after update to 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Dec 6, 2024
1 parent 7be0035 commit 402f8dd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions vendor/raylib/rlgl/rlgl.odin
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,17 @@ when ODIN_OS == .Windows {
// multiple copies of raylib.so, but since these bindings are for
// particular version of the library, I better specify it. Ideally,
// though, it's best specified in terms of major (.so.4)
"../linux/libraylib.so.500" when RAYLIB_SHARED else "../linux/libraylib.a",
"../linux/libraylib.so.550" when RAYLIB_SHARED else "../linux/libraylib.a",
"system:dl",
"system:pthread",
}
} else when ODIN_OS == .Darwin {
foreign import lib {
"../macos" +
("-arm64" when ODIN_ARCH == .arm64 else "") +
"/libraylib" + (".500.dylib" when RAYLIB_SHARED else ".a"),
"../macos/libraylib.550.dylib" when RAYLIB_SHARED else "../macos/libraylib.a",
"system:Cocoa.framework",
"system:OpenGL.framework",
"system:IOKit.framework",
}
}
} else {
foreign import lib "system:raylib"
}
Expand Down

0 comments on commit 402f8dd

Please sign in to comment.