aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-02-11 15:50:24 +0000
committerGinger Bill <bill@gingerbill.org>2017-02-11 15:50:24 +0000
commit346aa5f71ca4e3d6a71187024f809eaf2fc6da1b (patch)
treed61331a1bf713f66bcdba8816b8b01eef3e643b2 /core
parent73d6a55f5c96459d30eca5747d1458bcf6e9fec4 (diff)
Only check files that have been truly imported.
Diffstat (limited to 'core')
-rw-r--r--core/_preload.odin4
-rw-r--r--core/sys/windows.odin11
2 files changed, 7 insertions, 8 deletions
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;