og-libsurvive/libs
Mark Stalzer 5588cadf5a macOS: plugin loading, hidapi, and alloca/stdlib.h fixes
survive_plugins.unix.h: use .dylib extension and _NSGetExecutablePath()
on Apple. Also fixes a latent Linux bug where readlink() return value
was used as an array index without checking for error (-1).

CMakeLists.txt: find hidapi on Apple via pkg-config rather than
hardcoded Homebrew paths, which differ between Apple Silicon
(/opt/homebrew) and Intel (/usr/local).

cn_matrix.h: replace <malloc.h> with <stdlib.h> unconditionally, but
guard the re-inclusion of <malloc.h> with _WIN32. <malloc.h> does not
exist on macOS; <stdlib.h> provides malloc on all platforms. MSVC does
not declare alloca in <stdlib.h> — it lives in <malloc.h>.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 15:05:38 +00:00
..
cnkalman cnkalman: upgrade to sciplot 0.3.1 2025-03-28 13:05:46 +00:00
cnmatrix macOS: plugin loading, hidapi, and alloca/stdlib.h fixes 2026-05-22 15:05:38 +00:00