Merge pull request #29 from sdroege/ndi-windows-linking

Use correct library name for linking on Windows
This commit is contained in:
Alfonso Rodríguez Pereira 2019-07-11 11:07:23 +02:00 committed by GitHub
commit 3742f8e776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,9 @@
use std::ptr;
#[link(name = "ndi")]
#[cfg_attr(all(target_arch = "x86_64", target_os = "windows"), link(name = "Processing.NDI.Lib.x64"))]
#[cfg_attr(all(target_arch = "x86", target_os = "windows"), link(name = "Processing.NDI.Lib.x86"))]
#[cfg_attr(not(any(target_os = "windows", target_os = "macos")), link(name = "ndi"))]
extern "C" {
pub fn NDIlib_initialize() -> bool;
pub fn NDIlib_find_create_v2(