File tree Expand file tree Collapse file tree 5 files changed +35
-10
lines changed
Expand file tree Collapse file tree 5 files changed +35
-10
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,15 @@ if (LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG)
4343 endif ()
4444endif ()
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments