From: LinuxLegend Date: Wed, 30 Mar 2022 17:31:00 +0000 (-0600) Subject: Removing Define checks for Tinycthreads X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=refs%2Fpull%2F9%2Fhead;p=jp%2Fvkhelpers.git Removing Define checks for Tinycthreads --- diff --git a/src/deps/tinycthread.c b/src/deps/tinycthread.c index 124579a..042115a 100644 --- a/src/deps/tinycthread.c +++ b/src/deps/tinycthread.c @@ -20,8 +20,6 @@ freely, subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ - -#if defined(STDC_NO_THREADS) /* 2013-01-06 Camilla Löwy * * Added casts from time_t to DWORD to avoid warnings on VC++. @@ -591,5 +589,4 @@ int _tthread_clock_gettime(clockid_t clk_id, struct timespec *ts) #endif return 0; } -#endif // _TTHREAD_EMULATE_CLOCK_GETTIME_ -#endif // END OF STDC_NO_THREADS \ No newline at end of file +#endif // _TTHREAD_EMULATE_CLOCK_GETTIME_ \ No newline at end of file diff --git a/src/deps/tinycthread.h b/src/deps/tinycthread.h index 4c81121..64af21a 100644 --- a/src/deps/tinycthread.h +++ b/src/deps/tinycthread.h @@ -23,7 +23,6 @@ freely, subject to the following restrictions: #ifndef _TINYCTHREAD_H_ #define _TINYCTHREAD_H_ -#if defined(STDC_NO_THREADS) /** * @file * @mainpage TinyCThread API Reference @@ -437,8 +436,4 @@ void *tss_get(tss_t key); * not be honored. */ int tss_set(tss_t key, void *val); - -#else -#include -#endif #endif /* _TINYTHREAD_H_ */ \ No newline at end of file