curl-library
Compiler error with c-ares and Visual studio 2012
From: Andreas Rieke <andreas.rieke_at_isl.de>
Date: Sun, 10 Nov 2013 14:40:05 +0100
Date: Sun, 10 Nov 2013 14:40:05 +0100
Hi,
when compiling libcurl 7.33.0 with c-ares 1.10.0 under Windows Server
2012 with Visual Studio 2012, I get a compilation error in file
lib/asyn-ares.c and function CURLcode Curl_set_dns_local_ip4(struct
SessionHandle *data, const char *local_ip4) in line 648: The compiler
simply does not understand uint32_t.
Instead of
> uint32_t a4;
I put
> # ifdef WIN32
> u_long a4;
> # else
> uint32_t a4;
> # endif
in the beginning of the function - works well,
best regards,
Andreas
-- Dr. Ing. Andreas Rieke - Geschäftsführender Gesellschafter - signatur_oben ISL Internet Sicherheitslösungen GmbH Bergstrasse 128 D-58095 Hagen Tel.: +49 (0) 2331/34956-0 Fax.: +49 (0) 2331/34956-29 E-Mail: andreas.rieke_at_isl.de <mailto:andreas.rieke_at_isl.de> Website: www.isl.de <http://www.arp-guard.com> Website: www.arp-guard.com <http://www.arp-guard.com> signatur_unten Geschäftsführer: Dr.-Ing. Andreas Rieke | Sitz: Hagen HRB 3816 | Amtsgericht Hagen | UStID-Nr. DE 201547313
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-10