<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<p dir="auto">[Forget about POSIX, amended the isue description]</p>
<p dir="auto">While <code>size_t</code> is C standard, <code>ssize_t</code> is not. If it is not available, we should <em>not</em> typedef it to an <code>int</code>. E.g. on Win64, <code>int</code> is 32 bits and <code>size_t</code> is 64bits.</p>
<p dir="auto">IMO, we better leave it to the application programmer, to do the right thing. E.g. on Windows this could be</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#include <BaseTsd.h></span>
<span id="LC2" class="line" lang="plaintext">typedef SSIZE_T ssize_t;</span></code></pre>
<p dir="auto">before including <code>gnutls.h</code>.</p>
<p dir="auto">At the same time, we need a <code>ssize_t</code> when building GnuTLS. We can achieve that with <code>AC_TYPE_SSIZE_T</code> in <code>configure.ac</code>.</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/688#note_139527392">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/577d037aeb5ceb67756123494f1cd035/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/688#note_139527392"}}</script>
</p>
</div>
</body>
</html>