Remove the use of import within when

This commit is contained in:
gingerBill
2023-08-04 15:54:44 +01:00
parent 3323d5c76c
commit 9aed26a234
10 changed files with 43 additions and 41 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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