<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Wed, Mar 6, 2013, at 10:06, Jonathan Leffler wrote:<br></div>
<blockquote type="cite"><div>&nbsp;</div>
<div><div>On Tue, Mar 5, 2013 at 11:13 PM, Alan Barrett <span dir="ltr">&lt;<a href="mailto:apb@cequrux.com" target="_blank">apb@cequrux.com</a>&gt;</span> wrote:<br></div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Tue, 05 Mar 2013, Arthur David Olson wrote:<br></div>
<div>&nbsp;</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The code in question dates back to when "long" was the longest integer 
type available with all compilers ("long long" was not universal then).
<br></blockquote><div>&nbsp;</div>
</div>
<div>
Today, intmax_t is the longest integer type. &nbsp;Perhaps most of the longs in zic.t should be changed to intmax_t.<br></div>
</blockquote></div>
<div>&nbsp;</div>
<div>Does Microsoft's MSVC (which is a C89 compiler) have support for intmax_t (and &lt;stdint.h&gt; or &lt;inttypes.h&gt;)?&nbsp; Does the TZ code have to work with Microsoft compilers?<br></div>
</blockquote><div>&nbsp;</div>
<div>The latest version supports &lt;stdint.h&gt;, but NOT inttypes.h or printf("%jd" [etc]). I am unsure whether it supports long long (the headers are still full of __int64), but it does support %lld.<br></div>
<div>&nbsp;</div>
<div>I don't know what version these features were added in.</div>
</body>
</html>