Change foreign_library to foreign import

This commit is contained in:
gingerBill
2017-10-15 15:21:56 +01:00
parent 26ea8f6dcb
commit 85f7c2d040
8 changed files with 72 additions and 75 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
when ODIN_OS == "windows" {
foreign_library lib "system:opengl32.lib"
foreign import lib "system:opengl32.lib"
import win32 "core:sys/windows.odin"
import "core:sys/wgl.odin"
} else when ODIN_OS == "linux" {
foreign_library lib "system:gl"
foreign import lib "system:gl"
}
export "core:opengl_constants.odin"