diff options
Diffstat (limited to 'redist/linmath.h')
-rw-r--r-- | redist/linmath.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redist/linmath.h b/redist/linmath.h index e46bbd4..78cac5c 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -7,13 +7,11 @@ extern "C" { #endif -#ifndef LINMATH_EXPORT -#ifdef _WIN32 -#define LINMATH_EXPORT extern __declspec(dllexport) +#if defined( _WIN32 ) && !defined(TCC) +#define LINMATH_EXPORT __declspec(dllexport) #else #define LINMATH_EXPORT __attribute__((visibility("default"))) #endif -#endif // Yes, I know it's kind of arbitrary. #define DEFAULT_EPSILON 0.001 |