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

    <tr>
        <th>Summary</th>
        <td>
            [libc] implement endian.h
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

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

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

<pre>
    When building clang against llvm-libc, the build fails due to llvm-libc not providing endian.h. llvm/include/llvm/Support/SwapByteOrder.h in particular uses this header.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxEkc2O3CoQhZ8Gb9C1bDBt94LFnYy8zSKLrAuoNpVgsPjpaN4-smeU3iH01amjr6AU2iKiZuqNqfcOWvUp60j2t8MCLUTCXDqT3If-6TFy0yg4ihu3AeLGYQOKpfIQnvt_gYxl4huvHj85_gAKhbuGvKYXw2Oq_MjpSVcSRkcQe99fBBMrRRuaQybWr48f7ThSrufrDxxvHxW_Z4e595wiPyBXsi1A5q1g4dVT4R7hBDqnpbvLO3Sox1kuwyhnOXVeO3Agb4DSAC6LAvGwFtRgjJof9magIy0GoYZRzGKUSk79AmpZhIVFzsrO95FNA-5AoT879ilvHZXSUI9iusmxC2AwlEurEJ9ixCk460uDaVth0xCo1PJKqFTDdYprQL1z2o-AO8b6T1LXctC-1qMw-T8TKxPrRtU309u0v4xdS46cfqE9tV3VChPrV7unFn8DAAD__12fqCY">