mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
vendor:x11/xlib add IS_SUPPORTED constant to match core:time and friends
This commit is contained in:
+1
-2
@@ -929,8 +929,7 @@ when ODIN_OS == .Windows {
|
|||||||
\t}
|
\t}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We want to use `vendor:x11/xlib` types so we need to match their build constraints.
|
when xlib.IS_SUPPORTED {
|
||||||
when ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD {
|
|
||||||
\tXlibDisplay :: xlib.Display
|
\tXlibDisplay :: xlib.Display
|
||||||
\tXlibWindow :: xlib.Window
|
\tXlibWindow :: xlib.Window
|
||||||
\tXlibVisualID :: xlib.VisualID
|
\tXlibVisualID :: xlib.VisualID
|
||||||
|
|||||||
Vendored
+1
-2
@@ -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 xlib.IS_SUPPORTED {
|
||||||
when ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD {
|
|
||||||
XlibDisplay :: xlib.Display
|
XlibDisplay :: xlib.Display
|
||||||
XlibWindow :: xlib.Window
|
XlibWindow :: xlib.Window
|
||||||
XlibVisualID :: xlib.VisualID
|
XlibVisualID :: xlib.VisualID
|
||||||
|
|||||||
Vendored
+4
@@ -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