Including gpgme.h fails with i686-mingw-w64
Andre Heinecke
aheinecke at intevation.de
Tue Apr 5 10:10:48 CEST 2011
Hello,
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
Error:
>u:\include/gpgme.h:39: error: conflicting declaration 'typedef long int
ssize_t'
>c:
\kdepim-e5-builds\kdepim-e5-package_2011-04-04-18-38\mingw\bin\../lib/gcc/i686-w64-mingw32/4.4.5/../../../../i686-w64-mingw32/include/_mingw.h:341:
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?
Regards,
Andre
--
Andre Heinecke | ++49-541-335083-262 | http://www.intevation.de/
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