Skip to content

Commit

Permalink
fix MinGW 32-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Dec 31, 2022
1 parent 9905986 commit c776bcc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions extern/pfd-fixed/portable-file-dialogs.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@
#include <chrono> // 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
Expand Down

0 comments on commit c776bcc

Please sign in to comment.