<div dir="ltr"><div>+Nakamura, he knows more about the various supported Windows configs.</div><div><br></div><div>Thanks!  At one point I thought I could delete DataTypes.h completely in favor of stdint.h, but I gave up because inttypes.h makes things complicated.</div>
<div><br></div><div>+#if defined(_WIN64)<br></div><div>+typedef signed __int64 ssize_t;</div><div>+#else</div><div>+typedef signed int ssize_t;</div><div>+#endif /* _WIN64 */</div><div>+</div><div>+/* Ideally, we would like to assume that stdint.h always exists on</div>
<div>+   every supported Visual Studio version.  Indeed, the header does get</div><div>+   installed on a vanilla VS 2012 installation.  But a search online</div><div>+   shows that some people seem to have a version of VS2012 that does</div>
<div>+   not have this header, so without a better understanding of why this</div><div>+   is it's better to leave this check in. */</div><div>+#ifndef HAVE_STDINT_H</div><div><br></div><div><div>Really?  I thought it was available since VS 2010.  Do you have a link to these results?  I'd like to nuke this, replace it with '#error "MSVC must provide stdint.h"', commit it, and see if it sticks.</div>
</div><div><br></div><div>...</div><div> <br></div><div>diff --git a/include/llvm/Support/<a href="http://DataTypes.h.in">DataTypes.h.in</a> b/include/llvm/Support/<a href="http://DataTypes.h.in">DataTypes.h.in</a></div><div>
index 7fc9b72..40c4097 100644</div><div>--- a/include/llvm/Support/<a href="http://DataTypes.h.in">DataTypes.h.in</a></div><div>+++ b/include/llvm/Support/<a href="http://DataTypes.h.in">DataTypes.h.in</a></div><div>@@ -37,6 +37,14 @@</div>
<div><br></div><div>I don't think we support MSVC in the autoconf build, but it's good to keep these in sync anyway.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 25, 2014 at 10:30 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Previously, DataTypes.h would #define a variety of symbols any time<br>

they weren't already defined.  However, some versions of Visual<br>
Studio do provide the appropriate headers, so if those headers<br>
are included after DataTypes.h, it can lead to macro redefinition<br>
warnings.<br>
<br>
The fix is to include the appropriate headers if they exist, and<br>
only #define the symbols if the required header does not exist.<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div></div>