From 1ddd1966da007ba6d1aa6d858473492932cc78ca Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sun, 15 Apr 2018 21:13:00 -0400 Subject: Make things more TCC 0.27 friendly. --- redist/CNFGWinDriver.c | 1 - redist/linmath.h | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'redist') diff --git a/redist/CNFGWinDriver.c b/redist/CNFGWinDriver.c index 4d34e19..3bbf509 100644 --- a/redist/CNFGWinDriver.c +++ b/redist/CNFGWinDriver.c @@ -240,7 +240,6 @@ void CNFGHandleInput() break; } } - return 0; } #ifndef CNFGOGL 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 -- cgit v1.2.3