mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Remove the use of import within when
This commit is contained in:
+2
-2
@@ -829,9 +829,9 @@ with open("../structs.odin", 'w', encoding='utf-8') as f:
|
||||
f.write("""
|
||||
import "core:c"
|
||||
|
||||
import win32 "core:sys/windows"
|
||||
_ :: win32
|
||||
when ODIN_OS == .Windows {
|
||||
\timport win32 "core:sys/windows"
|
||||
|
||||
\tHINSTANCE :: win32.HINSTANCE
|
||||
\tHWND :: win32.HWND
|
||||
\tHMONITOR :: win32.HMONITOR
|
||||
|
||||
Vendored
+2
-2
@@ -5,9 +5,9 @@ package vulkan
|
||||
|
||||
import "core:c"
|
||||
|
||||
import win32 "core:sys/windows"
|
||||
_ :: win32
|
||||
when ODIN_OS == .Windows {
|
||||
import win32 "core:sys/windows"
|
||||
|
||||
HINSTANCE :: win32.HINSTANCE
|
||||
HWND :: win32.HWND
|
||||
HMONITOR :: win32.HMONITOR
|
||||
|
||||
Reference in New Issue
Block a user