aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-04-15 21:13:00 -0400
committercnlohr <lohr85@gmail.com>2018-04-15 21:13:00 -0400
commit1ddd1966da007ba6d1aa6d858473492932cc78ca (patch)
tree6749321ff4b176d6cf1bf443d42de49f367e3e0a /redist
parent63daf8c314ed3111fb8d45822c547f5e526d84bd (diff)
downloadlibsurvive-1ddd1966da007ba6d1aa6d858473492932cc78ca.tar.gz
libsurvive-1ddd1966da007ba6d1aa6d858473492932cc78ca.tar.bz2
Make things more TCC 0.27 friendly.
Diffstat (limited to 'redist')
-rw-r--r--redist/CNFGWinDriver.c1
-rw-r--r--redist/linmath.h6
2 files changed, 2 insertions, 5 deletions
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