Merge pull request #1060 from Kelimion/win_sys

Allow `core:sys/windows` to build on Windows only
This commit is contained in:
Jeroen van Rijn
2021-07-15 12:15:10 +02:00
committed by GitHub
12 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
// +build windows
package win32
import "core:strings";

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import advapi32 "system:Advapi32.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import bcrypt "system:Bcrypt.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import kernel32 "system:Kernel32.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import netapi32 "system:Netapi32.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import ntdll_lib "system:ntdll.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import shell32 "system:Shell32.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import Synchronization "system:Synchronization.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
import "core:c"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import userenv "system:Userenv.lib"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
import "core:strings"

View File

@@ -1,3 +1,4 @@
// +build windows
package sys_windows
foreign import ws2_32 "system:Ws2_32.lib"