Skip to content

Commit 86cccb4

Browse files
author
Rian Quinn
committed
v1.2 patch
Signed-off-by: Rian Quinn <“rianquinn@gmail.com”>
1 parent af3664f commit 86cccb4

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

cmake/config-ix.cmake

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ if (LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG)
4343
endif ()
4444
endif ()
4545

46-
if(NOT WIN32 OR MINGW)
47-
include(CheckLibcxxAtomic)
48-
endif()
46+
# ------------------------------------------------------------------------------
47+
# bareflank: start
48+
# ------------------------------------------------------------------------------
49+
# if(NOT WIN32 OR MINGW)
50+
# include(CheckLibcxxAtomic)
51+
# endif()
52+
# ------------------------------------------------------------------------------
53+
# bareflank: end
54+
# ------------------------------------------------------------------------------
4955

5056
# Check compiler flags
5157

include/__bsd_locale_fallbacks.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#ifndef _LIBCPP_BSD_LOCALE_FALLBACKS_DEFAULTS_H
1515
#define _LIBCPP_BSD_LOCALE_FALLBACKS_DEFAULTS_H
1616

17+
#include <cstdio>
1718
#include <stdlib.h>
1819
#include <memory>
1920

include/__locale

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,13 @@ public:
394394
// Same type as Newlib's _ctype_ array in newlib/libc/include/ctype.h.
395395
typedef char mask;
396396
static const mask space = _S;
397-
static const mask print = _P | _U | _L | _N | _B;
397+
// -----------------------------------------------------------------------------
398+
// bareflank: start
399+
// -----------------------------------------------------------------------------
400+
static const mask print = static_cast<char>(_P | _U | _L | _N | _B);
401+
// -----------------------------------------------------------------------------
402+
// bareflank: end
403+
// -----------------------------------------------------------------------------
398404
static const mask cntrl = _C;
399405
static const mask upper = _U;
400406
static const mask lower = _L;

include/support/newlib/xlocale.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
#include <clocale>
1717
#include <cwctype>
1818
#include <ctype.h>
19-
#include <support/xlocale/__nop_locale_mgmt.h>
19+
// -----------------------------------------------------------------------------
20+
// bareflank: start
21+
// -----------------------------------------------------------------------------
22+
// #include <support/xlocale/__nop_locale_mgmt.h>
23+
// -----------------------------------------------------------------------------
24+
// bareflank: end
25+
// -----------------------------------------------------------------------------
2026
#include <support/xlocale/__posix_l_fallback.h>
2127
#include <support/xlocale/__strtonum_fallback.h>
2228

src/thread.cpp

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,17 @@ thread::hardware_concurrency() _NOEXCEPT
9999
#else // defined(CTL_HW) && defined(HW_NCPU)
100100
// TODO: grovel through /proc or check cpuid on x86 and similar
101101
// instructions on other architectures.
102-
# if defined(_MSC_VER) && ! defined(__clang__)
103-
_LIBCPP_WARNING("hardware_concurrency not yet implemented")
104-
# else
105-
# warning hardware_concurrency not yet implemented
106-
# endif
102+
// -----------------------------------------------------------------------------
103+
// bareflank: start
104+
// -----------------------------------------------------------------------------
105+
// # if defined(_LIBCPP_MSVC)
106+
// _LIBCPP_WARNING("hardware_concurrency not yet implemented")
107+
// # else
108+
// # warning hardware_concurrency not yet implemented
109+
// # endif
110+
// -----------------------------------------------------------------------------
111+
// bareflank: end
112+
// -----------------------------------------------------------------------------
107113
return 0; // Means not computable [thread.thread.static]
108114
#endif // defined(CTL_HW) && defined(HW_NCPU)
109115
}

0 commit comments

Comments
 (0)