This one is a bit more tricky. See affected code:
http://hg.mozilla.org/mozilla-central/file/9e3d649b80a2/netwerk/dns/GetAddrInfo.cpp#l41

Due to other bug in PSDK, some workarounds are needed. They #undef
UNICODE for just one header. This, however, doesn't work on mingw-w64,
because we use __MINGW_TYPEDEF_AW that is defined earlier. IMHO this
kind of problem is so unusual, that a solution of just not using it in
one affected case is good enough.

---
 mingw-w64-headers/include/windns.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


diff --git a/mingw-w64-headers/include/windns.h b/mingw-w64-headers/include/windns.h
index 89af6b5..51c2220 100644
--- a/mingw-w64-headers/include/windns.h
+++ b/mingw-w64-headers/include/windns.h
@@ -713,8 +713,11 @@ extern "C" {
     } Data;
   } DNS_RECORDA,*PDNS_RECORDA;
 
-  __MINGW_TYPEDEF_AW(DNS_RECORD)
-  __MINGW_TYPEDEF_AW(PDNS_RECORD)
+#ifdef UNICODE
+  typedef DNS_RECORDW DNS_RECORD, *PDNS_RECORD;
+#else
+  typedef DNS_RECORDA DNS_RECORD, *PDNS_RECORD;
+#endif
 
 #define DNS_RECORD_FIXED_SIZE FIELD_OFFSET(DNS_RECORD,Data)
 #define SIZEOF_DNS_RECORD_HEADER DNS_RECORD_FIXED_SIZE

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to