authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-10-09 22:02:37+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-10-09 22:44:35+02:00
logf83bb3dd9e68899ca39cdddb7d84c2ad1c833d55
tree40b4207a3120fdd251cfc8b35a4177762fbbeb12
parenta4b3e695af47a93788b265b0fc4a55d4dded1ef3

Fix compilation w/ clang

Clang pretends to be gcc 4.4 and that causes some re-definition errors. The problem has been reported to the upstream some time ago but nothing was done about it.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/libc/include/any-windows-any/intrin.h+1-1
...@@ -50,7 +50,7 @@...@@ -50,7 +50,7 @@
50 * On GCC 4.9 we may always include those headers. On older GCCs, we may do it only if CPU50 * On GCC 4.9 we may always include those headers. On older GCCs, we may do it only if CPU
51 * features used by them are enabled, so we need to check macros like __SSE__ or __MMX__ first.51 * features used by them are enabled, so we need to check macros like __SSE__ or __MMX__ first.
52 */52 */
53#if __MINGW_GNUC_PREREQ(4, 9)53#if __MINGW_GNUC_PREREQ(4, 9) || defined(__clang__)
54#define __MINGW_FORCE_SYS_INTRINS54#define __MINGW_FORCE_SYS_INTRINS
55#endif55#endif
5656