From c776bccfda6efb768915a1f8226e703c2d168464 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 31 Dec 2022 16:50:41 -0500 Subject: [PATCH] fix MinGW 32-bit build --- extern/pfd-fixed/portable-file-dialogs.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/extern/pfd-fixed/portable-file-dialogs.h b/extern/pfd-fixed/portable-file-dialogs.h index fc6df0a1..8e5ca507 100644 --- a/extern/pfd-fixed/portable-file-dialogs.h +++ b/extern/pfd-fixed/portable-file-dialogs.h @@ -54,14 +54,16 @@ #include // std::chrono // Versions of mingw64 g++ up to 9.3.0 do not have a complete IFileDialog +// we don't use PFD on Windows anyway #ifndef PFD_HAS_IFILEDIALOG -# define PFD_HAS_IFILEDIALOG 1 -# if (defined __MINGW64__ || defined __MINGW32__) && defined __GXX_ABI_VERSION -# if __GXX_ABI_VERSION <= 1014 -# undef PFD_HAS_IFILEDIALOG -# define PFD_HAS_IFILEDIALOG 0 -# endif -# endif +#define PFD_HAS_IFILEDIALOG 0 +//# define PFD_HAS_IFILEDIALOG 1 +//# if (defined __MINGW64__ || defined __MINGW32__) && defined __GXX_ABI_VERSION +//# if __GXX_ABI_VERSION <= 1014 +//# undef PFD_HAS_IFILEDIALOG +//# define PFD_HAS_IFILEDIALOG 0 +//# endif +//# endif #endif namespace pfd