mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 22:33:36 +00:00
vendor:x11/xlib add IS_SUPPORTED constant to match core:time and friends
This commit is contained in:
@@ -929,8 +929,7 @@ when ODIN_OS == .Windows {
|
||||
\t}
|
||||
}
|
||||
|
||||
// We want to use `vendor:x11/xlib` types so we need to match their build constraints.
|
||||
when ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD {
|
||||
when xlib.IS_SUPPORTED {
|
||||
\tXlibDisplay :: xlib.Display
|
||||
\tXlibWindow :: xlib.Window
|
||||
\tXlibVisualID :: xlib.VisualID
|
||||
|
||||
3
vendor/vulkan/structs.odin
vendored
3
vendor/vulkan/structs.odin
vendored
@@ -36,8 +36,7 @@ when ODIN_OS == .Windows {
|
||||
}
|
||||
}
|
||||
|
||||
// We want to use `vendor:x11/xlib` types so we need to match their build constraints.
|
||||
when ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD {
|
||||
when xlib.IS_SUPPORTED {
|
||||
XlibDisplay :: xlib.Display
|
||||
XlibWindow :: xlib.Window
|
||||
XlibVisualID :: xlib.VisualID
|
||||
|
||||
4
vendor/x11/xlib/xlib.odin
vendored
Normal file
4
vendor/x11/xlib/xlib.odin
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
package xlib
|
||||
|
||||
// Value, specifying whether `vendor:x11/xlib` is available on the current platform.
|
||||
IS_SUPPORTED :: ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD
|
||||
Reference in New Issue
Block a user