[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-52.3.0esr-7.5-2] Bug 1368406 Use non-Windows Printf Format Specifiers in MinGW r=froydnj



commit 7169757638781da3a706c7700bcd4eb2bc613591
Author: Tom Ritter <tom@xxxxxxxxxxx>
Date:   Mon May 29 00:38:57 2017 -0500

    Bug 1368406 Use non-Windows Printf Format Specifiers in MinGW r=froydnj
    
    MinGW applies the gnu_printf format attribute, which expects
    non-Windows format specifiers. These macros were not designed
    to handle MinGW.
    
    MozReview-Commit-ID: HuJrK43Bg1A
    
    --HG--
    extra : rebase_source : 6ccc1b2f4ab0e71584f442e86d94322e2c6382fb
---
 mfbt/SizePrintfMacros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mfbt/SizePrintfMacros.h b/mfbt/SizePrintfMacros.h
index ec55c62c5955..94eff2fe255b 100644
--- a/mfbt/SizePrintfMacros.h
+++ b/mfbt/SizePrintfMacros.h
@@ -18,7 +18,7 @@
  * http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx
  */
 
-#if defined(XP_WIN)
+#if defined(XP_WIN) && !defined(__MINGW32__)
 #  define PRIoSIZE  "Io"
 #  define PRIuSIZE  "Iu"
 #  define PRIxSIZE  "Ix"

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits