mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Merge pull request #1060 from Kelimion/win_sys
Allow `core:sys/windows` to build on Windows only
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package win32
|
||||
|
||||
import "core:strings";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import advapi32 "system:Advapi32.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import bcrypt "system:Bcrypt.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import netapi32 "system:Netapi32.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import ntdll_lib "system:ntdll.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import shell32 "system:Shell32.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import Synchronization "system:Synchronization.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import userenv "system:Userenv.lib"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
import "core:strings"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import ws2_32 "system:Ws2_32.lib"
|
||||
|
||||
Reference in New Issue
Block a user