On Mon, Apr 9, 2012 at 9:23 AM, Dongsheng Song <[email protected]> wrote:
> On Sun, Apr 8, 2012 at 22:23, Kai Tietz <[email protected]> wrote:
>> Proper fix for Clang would be in _mingw.h.in header before the first
>> use of __SIZEOF_INT128__.
>>
>> #if !defined (__SIZEOF_INT128__) && (__clang_major__ ==3) &&
>> (__clang_minor__ >= 1)
>> #define __SIZEOF_INT128__ 16
>> #endif
>>
>
> You maybe permit __clang_major__ >=4 .
>

Following OK for apply?

--- _mingw.h.in~
+++ _mingw.h.in
@@ -215,6 +215,10 @@
 #define __int32 int
 #define __int64 long long
 #ifdef _WIN64
+#if (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__
>= 1)) && \
+    !defined(__SIZEOF_INT128__) /* clang >= 3.1 has __int128 but no
size macro */
+#define __SIZEOF_INT128__ 16
+#endif
 #ifndef __SIZEOF_INT128__
 typedef int __int128 __attribute__ ((__mode__ (TI)));
 #endif

--
O.S.

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to