From 50025b3301c0148e162be2bf15d94908617ad747 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 11 Oct 2021 09:56:50 +0200 Subject: Fix Windows exports --- src/Globals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Globals.cpp b/src/Globals.cpp index 5f32482..3edd877 100644 --- a/src/Globals.cpp +++ b/src/Globals.cpp @@ -43,11 +43,11 @@ _AstraExport bool cudaAvailable() { static bool (*pShouldAbortHook)(void) = 0; -void setShouldAbortHook(bool (*_pShouldAbortHook)(void)) { +_AstraExport void setShouldAbortHook(bool (*_pShouldAbortHook)(void)) { pShouldAbortHook = _pShouldAbortHook; } -bool shouldAbort() { +_AstraExport bool shouldAbort() { if (pShouldAbortHook && (*pShouldAbortHook)()) return true; -- cgit v1.2.3