From 1e45c81856bd3b5bda41addb47fe1c02f6a7b736 Mon Sep 17 00:00:00 2001 From: Alexey Ozeritsky Date: Mon, 17 Apr 2017 00:08:57 +0300 Subject: [PATCH] MSVS: fix linkage --- bundled/umfpack/AMD/Source/amd_global.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundled/umfpack/AMD/Source/amd_global.cc b/bundled/umfpack/AMD/Source/amd_global.cc index 93f2b45187..92bf72c2ae 100644 --- a/bundled/umfpack/AMD/Source/amd_global.cc +++ b/bundled/umfpack/AMD/Source/amd_global.cc @@ -20,6 +20,8 @@ #define NULL 0 #endif +extern "C" { + /* ========================================================================= */ /* === Default AMD memory manager ========================================== */ /* ========================================================================= */ @@ -82,3 +84,5 @@ int (*amd_printf) (const char *, ...) = printf ; #else int (*amd_printf) (const char *, ...) = NULL ; #endif + +} -- 2.39.5