commit ad700c2aa953d0ad201fa746c1c46257c9586cc3
parent 7ae138a2c58f184aed3c3a7d252e82db8633220e
Author: Ryan VanderMeulen <rvandermeulen@mozilla.com>
Date: Tue, 6 Jan 2026 13:50:10 +0000
Bug 2008634 - Add back some stdio.h includes for MingW builds. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D277956
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/libmar/src/mar_private.h b/modules/libmar/src/mar_private.h
@@ -54,8 +54,11 @@ static_assert(sizeof(BLOCKSIZE) < (SIGNATURE_BLOCK_OFFSET + sizeof(uint32_t)),
instead of the NSPR equivalents. */
#ifdef XP_WIN
# include <winsock2.h>
-/* Include stdio.h before redefining ftello and fseeko to avoid clobbering
- * the ftello() and fseeko() function declarations in MinGW's stdio.h. */
+# ifdef __MINGW32__
+/* Include stdio.h before redefining ftello and fseeko to avoid clobbering
+ the ftello() and fseeko() function declarations in MinGW's stdio.h. */
+# include <stdio.h>
+# endif
# define ftello _ftelli64
# define fseeko _fseeki64
#else
diff --git a/xpcom/windbgdlg/windbgdlg.cpp b/xpcom/windbgdlg/windbgdlg.cpp
@@ -14,6 +14,7 @@
/* MingW currently does not implement a wide version of the
startup routines. Workaround is to implement something like
it ourselves. See bug 472063 */
+# include <stdio.h>
# include <shellapi.h>
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int);