Skip to content

Commit

Permalink
Add missing #include <format>
Browse files Browse the repository at this point in the history
If there is a <format> header file, then you have to load it. :-)
  • Loading branch information
Randalphwa committed May 20, 2024
1 parent c25a5db commit 98a2c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/internal/xrcpreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ bool XrcPreview::Create(wxWindow* parent, wxWindowID id, const wxString& title,
/////////////////////////////////////////////////////////////////////////////

#if defined(INTERNAL_TESTING)
#if __has_include(<format>)
#include <format>
#endif

#include <wx/filedlg.h> // wxFileDialog base header
#include <wx/mstream.h> // Memory stream classes
Expand Down

0 comments on commit 98a2c04

Please sign in to comment.