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.