mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 03:40:08 +00:00
export declarations
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ foreign_system_library lib "gl" when ODIN_OS == "linux";
|
||||
|
||||
import win32 "sys/windows.odin" when ODIN_OS == "windows";
|
||||
import "sys/wgl.odin" when ODIN_OS == "windows";
|
||||
using import . "opengl_constants.odin";
|
||||
export "opengl_constants.odin";
|
||||
|
||||
_ := compile_assert(ODIN_OS != "osx");
|
||||
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
using import . "os_windows.odin" when ODIN_OS == "windows";
|
||||
using import . "os_x.odin" when ODIN_OS == "osx";
|
||||
using import . "os_linux.odin" when ODIN_OS == "linux";
|
||||
export "os_windows.odin" when ODIN_OS == "windows";
|
||||
export "os_x.odin" when ODIN_OS == "osx";
|
||||
export "os_linux.odin" when ODIN_OS == "linux";
|
||||
|
||||
write_string :: proc(fd: Handle, str: string) -> (int, Errno) {
|
||||
return write(fd, cast([]u8)str);
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
using import . "sync_windows.odin" when ODIN_OS == "windows";
|
||||
using import . "sync_linux.odin" when ODIN_OS == "linux";
|
||||
export "sync_windows.odin" when ODIN_OS == "windows";
|
||||
export "sync_linux.odin" when ODIN_OS == "linux";
|
||||
|
||||
Reference in New Issue
Block a user