Przeglądaj źródła

vendor: botan: add OpenBSD support

Sébastien Marie 3 lat temu
rodzic
commit
553292ffd0
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      vendor/botan/bindings/botan.odin

+ 3 - 1
vendor/botan/bindings/botan.odin

@@ -146,6 +146,8 @@ when ODIN_OS == .Windows {
     foreign import botan_lib "system:botan-2"
     foreign import botan_lib "system:botan-2"
 } else when ODIN_OS == .Darwin {
 } else when ODIN_OS == .Darwin {
     foreign import botan_lib "system:botan-2"
     foreign import botan_lib "system:botan-2"
+} else when ODIN_OS == .OpenBSD {
+    foreign import botan_lib "system:botan-2"
 }
 }
 
 
 @(default_calling_convention="c")
 @(default_calling_convention="c")
@@ -471,4 +473,4 @@ foreign botan_lib {
     fpe_destroy                         :: proc(fpe: fpe_t) -> c.int ---
     fpe_destroy                         :: proc(fpe: fpe_t) -> c.int ---
     fpe_encrypt                         :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
     fpe_encrypt                         :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
     fpe_decrypt                         :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
     fpe_decrypt                         :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
-}
+}