mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
32 lines
649 B
Diff
32 lines
649 B
Diff
|
--- bits/random.h
|
||
|
+++ bits/random.h
|
||
|
@@ -101,10 +101,12 @@
|
||
|
{ typedef unsigned long long type; };
|
||
|
|
||
|
#ifdef _GLIBCXX_USE_INT128
|
||
|
+#ifndef __clang__
|
||
|
template<int __s>
|
||
|
struct _Select_uint_least_t<__s, 1>
|
||
|
{ typedef unsigned __int128 type; };
|
||
|
#endif
|
||
|
+#endif
|
||
|
|
||
|
// Assume a != 0, a < m, c < m, x < m.
|
||
|
template<typename _Tp, _Tp __m, _Tp __a, _Tp __c,
|
||
|
--- cstddef
|
||
|
+++ cstddef
|
||
|
@@ -45,11 +45,13 @@
|
||
|
#include <stddef.h>
|
||
|
|
||
|
#if __cplusplus >= 201103L
|
||
|
+#ifndef __clang__
|
||
|
namespace std
|
||
|
{
|
||
|
// We handle size_t, ptrdiff_t, and nullptr_t in c++config.h.
|
||
|
using ::max_align_t;
|
||
|
}
|
||
|
#endif
|
||
|
+#endif
|
||
|
|
||
|
#endif // _GLIBCXX_CSTDDEF
|