diff --git a/src/common/util/CxbxUtil.h b/src/common/util/CxbxUtil.h index 367a01e87..a425c283f 100644 --- a/src/common/util/CxbxUtil.h +++ b/src/common/util/CxbxUtil.h @@ -26,6 +26,7 @@ #ifndef CXBXUTIL_H #define CXBXUTIL_H +#include #include #include "xbox_types.h" #include "Cxbx.h" diff --git a/src/gui/DlgAbout.cpp b/src/gui/DlgAbout.cpp index 92b3e4942..36e22173b 100644 --- a/src/gui/DlgAbout.cpp +++ b/src/gui/DlgAbout.cpp @@ -64,7 +64,7 @@ INT_PTR CALLBACK DlgAboutProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa SendMessageW(hWndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon); // Build the Tab Control - constexpr size_t text_len = longest_str({ "About", "Contributors", "License" }) + 1; + const size_t text_len = longest_str({ "About", "Contributors", "License" }) + 1; char text[text_len]; TCITEM tabInfo; memset(&tabInfo, 0, sizeof(tabInfo));