Skip to content

Commit

Permalink
ignore deprecation of codecvt_utf8_utf16 and wstring_convert on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Apr 13, 2023
1 parent 490be91 commit 0f96489
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vstgui/lib/platform/common/generictextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE

#if defined(_WIN32)
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#endif

#include "generictextedit.h"
#include "../iplatformfont.h"
#include "../iplatformframe.h"
Expand All @@ -23,6 +19,9 @@
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#elif defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4996)
#endif

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -862,4 +861,6 @@ float STBTextEditView::getCharWidth (STBTextEditView* self, int n, int i)

#ifdef __clang__
#pragma clang diagnostic pop
#elif defined(_MSC_VER)
#pragma warning(pop)
#endif

0 comments on commit 0f96489

Please sign in to comment.