Including gpgme.h fails with i686-mingw-w64

Andre Heinecke aheinecke at
Tue Apr 5 10:10:48 CEST 2011


In gpgme.h ssize_t is defined as long this leads to a conflicting definition 
in mingw (since 3da380293d146f74f52ca81db0e31a18b51a1c27) it is not only 
defined for _MSC_VER but for all _WIN32 

>u:\include/gpgme.h:39: error: conflicting declaration 'typedef long int 
error: 'ssize_t' has a previous declaration as 'typedef int ssize_t'

This is the same on 32Bit Windows but when compiling for x64 it would fail 
because long is 32Bit on Windows on 64Bit Systems but ssize_t is defined as 
int64 on 64Bit Systems.

Why is there ssize_t defined in gpgme and not the one from BaseTsd.h taken?


Andre Heinecke |  ++49-541-335083-262 |
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20110405/649595a5/attachment.pgp>

More information about the Gnupg-devel mailing list