From 2318d04b9454ca376ce81a0d20e77fd359820813 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Tue, 19 Mar 2024 21:43:04 +0300 Subject: [PATCH] Add better resolution to QEXTERN --- include/quik_common.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/quik_common.h b/include/quik_common.h index 1ea86dd..055f48c 100644 --- a/include/quik_common.h +++ b/include/quik_common.h @@ -3,13 +3,18 @@ #include "stdlib.h" -#if __GNUC__ || __MSC_VER +#if __GNUC__ || _MSC_VER #define __QUIK_FUNCTION__ __FUNCTION__ - #define QEXTERN extern #else #define __QUIK_FUNCTION__ NULL #endif +#if WIN32 || _MSC_VER > 0 || __MINGW__ + #define QEXTERN __declspec(dllexport) +#else + #define QEXTERN +#endif + /** * @brief Callback for failed assert function for QUIK redist libraries. * @param[in] expr The expression that failed.