Generalize the foreign import for unsupported platforms

This commit is contained in:
gingerBill
2023-04-05 17:31:43 +01:00
parent 5b1a531755
commit dcf53236ff
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ when ODIN_OS == .Windows {
} else when ODIN_OS == .Linux {
foreign import lib "linux/liblua52.a"
} else {
#panic(`Unsupported platform of "vendor:lua/5.2"`)
foreign import lib "system:liblua52.a"
}
VERSION_MAJOR :: "5"