<div dir="ltr">Adding more appropriate email address for Andrey.<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 21, 2016 at 11:17 AM Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">I can't really reproduce Andrey's original problem (_byteswap_ushort compiles for me just fine without this include), but if I change this to <cstdlib> then I assume I have to change _byteswap_ushort to std::_byteswap_ushort, and yet that fails.  So I'm not really sure</div><div dir="ltr" class="gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> --- llvm/trunk/include/llvm/Support/SwapByteOrder.h (original)<br class="gmail_msg">
> +++ llvm/trunk/include/llvm/Support/SwapByteOrder.h Wed Dec 21 12:50:52 2016<br class="gmail_msg">
> @@ -18,6 +18,9 @@<br class="gmail_msg">
>  #include "llvm/Support/Compiler.h"<br class="gmail_msg">
>  #include "llvm/Support/DataTypes.h"<br class="gmail_msg">
>  #include <cstddef><br class="gmail_msg">
> +#if defined(_MSC_VER) && !defined(_DEBUG)<br class="gmail_msg">
> +#include <stdlib.h><br class="gmail_msg">
<br class="gmail_msg">
<cstdlib> instead of <stdlib.h>?<br class="gmail_msg">
<br class="gmail_msg">
~Aaron<br class="gmail_msg">
</blockquote></div></div></blockquote></div></div>