develooper Front page | perl.perl5.porters | Postings from February 2018

Re: Windows doesn't recognize ssize_t XS typemap

Thread Previous | Thread Next
From:
sisyphus1
Date:
February 9, 2018 13:21
Subject:
Re: Windows doesn't recognize ssize_t XS typemap
Message ID:
541F5919F2564D5581F404018FB83163@OwnerPC311012
-----Original Message----- 
From: Dagfinn Ilmari "Mannsåker"
Sent: Friday, February 09, 2018 10:37 PM
To: Karl Williamson
Cc: perl5-porters@perl.org
Subject: Re: Windows doesn't recognize ssize_t XS typemap

Karl Williamson <public@khwilliamson.com> writes:

>> The available typemaps displayed on Linux include ssize_t, but Windows 
>> doesn't like it.  Any ideas, or should I file a ticket?
>
> The ssize_t type is not specified by ISO C (only POSIX) and is not 
> provided by MSVC.  You should use the metaconfig-provided SSize_t instead.

However, the ssize_t type *is* provided by MinGW.
For example, this script compiles fine on Windows when using a MinGW port of 
gcc:

#include <stdio.h>
int main (void) {
  ssize_t x;
  return 0;
}

But then ... I don't know how relevant that is.

Cheers,
Rob

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About