From 346aa5f71ca4e3d6a71187024f809eaf2fc6da1b Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 11 Feb 2017 15:50:24 +0000 Subject: Only check files that have been truly imported. --- core/_preload.odin | 4 ++-- core/sys/windows.odin | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'core') diff --git a/core/_preload.odin b/core/_preload.odin index 802fc3801..5938fc362 100644 --- a/core/_preload.odin +++ b/core/_preload.odin @@ -17,7 +17,7 @@ Type_Info_Member :: struct #ordered { name: string, // can be empty if tuple type_info: ^Type_Info, - offset: int, // offsets are not used in tuples + offset: int, // offsets may not be used in tuples } Type_Info_Record :: struct #ordered { fields: []Type_Info_Member, @@ -83,7 +83,7 @@ Type_Info :: union { count: int, align: int, }, - Tuple: Type_Info_Record, + Tuple: Type_Info_Record, // Only really used for procedures Struct: Type_Info_Record, Union: Type_Info_Record, Raw_Union: Type_Info_Record, diff --git a/core/sys/windows.odin b/core/sys/windows.odin index 2aca8fe1d..a8a88bf7b 100644 --- a/core/sys/windows.odin +++ b/core/sys/windows.odin @@ -1,9 +1,8 @@ -_ := compile_assert(ODIN_OS == "windows"); -#foreign_system_library "kernel32.lib"; -#foreign_system_library "user32.lib"; -#foreign_system_library "gdi32.lib"; -#foreign_system_library "winmm.lib"; -#foreign_system_library "opengl32.lib"; +#foreign_system_library "kernel32.lib" when ODIN_OS == "windows"; +#foreign_system_library "user32.lib" when ODIN_OS == "windows"; +#foreign_system_library "gdi32.lib" when ODIN_OS == "windows"; +#foreign_system_library "winmm.lib" when ODIN_OS == "windows"; +#foreign_system_library "opengl32.lib" when ODIN_OS == "windows"; HANDLE :: rawptr; HWND :: HANDLE; -- cgit v1.2.3