From 14ea47c4204c3376026ab29a5edfe3dd91b86a93 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 4 Feb 2025 14:41:54 +0000 Subject: [PATCH] Add sdl3_locale.odin --- vendor/sdl3/sdl3_locale.odin | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 vendor/sdl3/sdl3_locale.odin diff --git a/vendor/sdl3/sdl3_locale.odin b/vendor/sdl3/sdl3_locale.odin new file mode 100644 index 000000000..2a5b263d0 --- /dev/null +++ b/vendor/sdl3/sdl3_locale.odin @@ -0,0 +1,13 @@ +package sdl3 + +import "core:c" + +Locale :: struct { + language: cstring, /**< A language name, like "en" for English. */ + country: cstring, /**< A country, like "US" for America. Can be NULL. */ +} + +@(default_calling_convention="c", link_prefix="SDL_", require_results) +foreign lib { + GetPreferredLocales :: proc(count: ^c.int) -> [^]^Locale --- +} \ No newline at end of file