<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64813>64813</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [libc++] <new> std module on windows with ucrt
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Arthapz
      </td>
    </tr>
</table>

<pre>
    Hello, i tried to build std module on windows but it seems the std::get_new_handler is not reachable with ucrt

```
stdmodules/std/new.inc:24:14: error: no member named 'get_new_handler' in namespace 'std'; did you mean 'set_new_handler'?
 24 |   using std::get_new_handler;
      | ~~~~~^~~~~~~~~~~~~~~
      |              set_new_handler
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\new.h:32:42: note: 'set_new_handler' declared here
   32 |             _CRTIMP2 new_handler __cdecl set_new_handler(_In_opt_ new_handler _NewHandler) throw();
      |           
```

here a self contained reproducer with full logs: https://github.com/Arthapz/libcpp-stdmodule-new-errors
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VM2O2zYQfprxZWBDGkqWdNDBq0TIomgRFAV6NChxbLGgSIOkqqaHPHtB2d10d5MOCP5gfjjz8ePIEPTVMrdQPkH5YSeXODnfnnyc5O3v3eDUl_YTG-OAOtQYvWaF0eGwaKMwRIWzU4thdBZXbZVbAw5LRB0xMM8B48TJDMQJxOnK8Wx5PU_SKsMedUDrInqW4yQHw7jqOOEy-gjZB8hOj_mYPcZ2DFHd7wxAfQpNveX1oO0I4kQFiFOeJmTvnU8b63DmeWCPVs6sEKh6kwhQhdpu6nCTIyeTLXIF4gmVVvjFLTiztJvmnTOI_p4bUoFQdYi4BG2vP6wcxNPDYZPk8jUJlB-_vpK3Vq_kbSKbbZcuLLvP3l29nLHXhgMC1X_VR6AGyu73xzP9pGOAssszKLtnO5pF8XY8ZAeiI-WHpNjeouwSwBOIkyAQp4LuqEZO63cBQcWjkZ4VTuz5pQhB74o4d7_-9vzzZ8L_8uJ8HlOAdwVSfX62Z3eL59fmv_D66V-TBuPk3QpUp3Lf4_xNvsuu-5yyRomBzQVHZ6PUlhV6vnmnlpH9naiXxRg07hoSDlOMt7QB6oH6q47TMhxGNwP1j98E1Bs9jLfb_oXCe8vrfiNq2KlWqEY0csdtfmxIVHVTit3UZmqoqlwxFU1ZH4-jHC9Ffrk0RLKqy0zsdEsZiazO67zKy1Iccq6K8XhppBBUjURQZDxLbQ7G_DkfnL_udAgLt8eizsXOyIFN2BoAkeUVNyUQpX7g2-SzH5ZrgCIzOsTwLUrU0WydI5UF9JRG-QFBJL6A-PiD_vDyyXeLN-3_4JYueiz7m3d_8BiB-i299Pe39P8JAAD__6Lgelc">