Skip to content

Commit 8dbd5b5

Browse files
committed
simply libname thanks to liblsl 1.14 using standard lib-naming convention
1 parent 5b549a0 commit 8dbd5b5

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

LSL.cs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -870,21 +870,8 @@ public static void check_error(int ec) {
870870

871871
class dll
872872
{
873-
874-
#if (UNITY_EDITOR_LINUX && UNITY_EDITOR_64)
875-
const string libname = "liblsl64.so";
876-
#elif UNITY_EDITOR_LINUX
877-
const string libname = "liblsl32.so";
878-
#elif (UNITY_EDITOR_WIN && UNITY_EDITOR_64)
879-
const string libname = "liblsl64";
880-
#elif UNITY_EDITOR_WIN
881-
const string libname = "liblsl32";
882-
#elif UNITY_ANDROID
883-
const string libname = "lslAndroid";
884-
#else
885-
// Name of the binary to include -- replace this if the native library has a differentname
886-
const string libname = "lsl";
887-
#endif
873+
// Name of the binary to include -- replace this if the native library has a differentname
874+
const string libname = "lsl";
888875

889876
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
890877
public static extern int lsl_protocol_version();

0 commit comments

Comments
 (0)