aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-08 18:04:05 +0100
committergingerBill <bill@gingerbill.org>2021-09-08 18:04:05 +0100
commite5fbf45c428a86a19d6718f0994c4d996addcbbe (patch)
treea4dfccb615f656735e6346156e5cf26001d797d4 /core/sys
parent123db3a23de0d37f2cd6a748df3c22c909ccfc0d (diff)
Add `vendor:raylib` (core only)
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/win32/user32.odin6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/sys/win32/user32.odin b/core/sys/win32/user32.odin
index 2fbf0a375..57aea88aa 100644
--- a/core/sys/win32/user32.odin
+++ b/core/sys/win32/user32.odin
@@ -3,6 +3,8 @@ package win32
foreign import "system:user32.lib"
+import "core:intrinsics"
+
Menu_Bar_Info :: struct {
size: u32,
@@ -94,7 +96,9 @@ MB_SERVICE_NOTIFICATION :: 0x00200000
@(default_calling_convention = "std")
foreign user32 {
@(link_name="GetDesktopWindow") get_desktop_window :: proc() -> Hwnd ---
- @(link_name="ShowCursor") show_cursor :: proc(show: Bool) -> i32 ---
+ when !intrinsics.is_package_imported("raylib") { // NOTE(bill): this is a bit of hack but it's to get around the namespace collisions
+ @(link_name="ShowCursor")show_cursor :: proc(show: Bool) -> i32 ---
+ }
@(link_name="GetCursorPos") get_cursor_pos :: proc(p: ^Point) -> Bool ---
@(link_name="SetCursorPos") set_cursor_pos :: proc(x, y: i32) -> Bool ---
@(link_name="ScreenToClient") screen_to_client :: proc(h: Hwnd, p: ^Point) -> Bool ---