From 1c2a62f0552496724e81045352bcd2afd85625f9 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sat, 4 Feb 2023 06:36:13 +0000 Subject: [PATCH] Include cstdint for wx Close #1065 Signed-off-by: Rafael Kitover --- src/wx/config/option.h | 8 ++++++++ src/wx/widgets/wx/wxmisc.h | 9 +++++++++ src/wx/wxhead.h | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/src/wx/config/option.h b/src/wx/config/option.h index fae2628a..cb30c30a 100644 --- a/src/wx/config/option.h +++ b/src/wx/config/option.h @@ -4,6 +4,7 @@ #include "nonstd/variant.hpp" #include +#include #include #include @@ -11,6 +12,13 @@ #include "config/option-id.h" +using std::uint8_t; +using std::uint16_t; +using std::uint32_t; +using std::int8_t; +using std::int16_t; +using std::int32_t; + namespace config { // Values for kDispFilter. diff --git a/src/wx/widgets/wx/wxmisc.h b/src/wx/widgets/wx/wxmisc.h index a72ef4e5..1d278f77 100644 --- a/src/wx/widgets/wx/wxmisc.h +++ b/src/wx/widgets/wx/wxmisc.h @@ -2,9 +2,18 @@ #define WX_MISC_H // utility widgets +#include + #include #include +using std::uint8_t; +using std::uint16_t; +using std::uint32_t; +using std::int8_t; +using std::int16_t; +using std::int32_t; + // simple radio button not under the same parent window // note that it must be checkbox, as wx radio buttons have rigid behavior class wxFarRadio : public wxCheckBox { diff --git a/src/wx/wxhead.h b/src/wx/wxhead.h index ad411187..9bb62e37 100644 --- a/src/wx/wxhead.h +++ b/src/wx/wxhead.h @@ -5,6 +5,8 @@ #pragma hdrstop #endif +#include + #include // The following are not pulled in by wx.h @@ -20,6 +22,13 @@ // filehistory.h is separate only in 2.9+ #include +using std::uint8_t; +using std::uint16_t; +using std::uint32_t; +using std::int8_t; +using std::int16_t; +using std::int32_t; + #ifndef NO_OGL // glcanvas must be included before SFML for MacOSX // originally, this was confined to drawing.h.