[Opalvoip-svn] SF.net SVN: opalvoip:[27395] ptlib/branches/v2_10
Brought to you by:
csoutheren,
rjongbloed
From: <ed...@us...> - 2012-03-31 19:01:40
|
Revision: 27395 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=27395&view=rev Author: ededu Date: 2012-03-31 19:01:34 +0000 (Sat, 31 Mar 2012) Log Message: ----------- Fix compile with mingw-w64 Modified Paths: -------------- ptlib/branches/v2_10/include/ptclib/pdns.h ptlib/branches/v2_10/src/ptclib/pdns.cxx Modified: ptlib/branches/v2_10/include/ptclib/pdns.h =================================================================== --- ptlib/branches/v2_10/include/ptclib/pdns.h 2012-03-31 04:51:07 UTC (rev 27394) +++ ptlib/branches/v2_10/include/ptclib/pdns.h 2012-03-31 19:01:34 UTC (rev 27395) @@ -45,18 +45,13 @@ #if defined(_WIN32) #include <windns.h> + #include <ntverp.h> - #ifndef __MINGW32__ + #pragma comment(lib, "dnsapi.lib") - #include <ntverp.h> + // Accommodate spelling error in windns.h + enum { DnsSectionAdditional = DnsSectionAddtional }; - #pragma comment(lib, "dnsapi.lib") - - // Accommodate spelling error in windns.h - enum { DnsSectionAdditional = DnsSectionAddtional }; - - #endif - #else /* _WIN32 */ #define P_HAS_RESOLVER 1 // set if using Unix-style DNS routines Modified: ptlib/branches/v2_10/src/ptclib/pdns.cxx =================================================================== --- ptlib/branches/v2_10/src/ptclib/pdns.cxx 2012-03-31 04:51:07 UTC (rev 27394) +++ ptlib/branches/v2_10/src/ptclib/pdns.cxx 2012-03-31 19:01:34 UTC (rev 27395) @@ -44,7 +44,7 @@ #if P_DNS -#ifdef _MSC_VER +#ifdef _WIN32 #pragma comment(lib, "DnsAPI.Lib") #pragma message("DNS support enabled") #else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |