From: Mikko Rasa Date: Tue, 5 Sep 2023 09:20:49 +0000 (+0300) Subject: Add a dummy function to trigger import library generation on MSVC X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=17bcc1975395e65f75d24f8920d6beb442927a4a;p=libs%2Fmath.git Add a dummy function to trigger import library generation on MSVC Really this should be marked as static-only / no-library, but builder does not support that yet. --- diff --git a/source/linal/dummy.cpp b/source/linal/dummy.cpp index 74a8e44..84952ac 100644 --- a/source/linal/dummy.cpp +++ b/source/linal/dummy.cpp @@ -5,3 +5,12 @@ /* This dummy file is needed to make Builder happy, and also serves as a syntax check by pulling in all the headers. */ + +#ifdef _WIN32 +namespace Msp { + +// This dummy function triggers the MSVC linker to create an import library. +__declspec(dllexport) void mspmath_dummy_func() { } + +} // namespace Msp +#endif