From d4be50490f23257a95fe3c09693e332e0096d8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 1 Feb 2021 17:40:49 +0100 Subject: [PATCH] Add headers missing for compilation with GCC (#1468) Things that required such update included: * `wstringstream` * `setprecision` * `SCODE_CODE`, `E_BOUNDS` * Various SAL macros --- src/CalcManager/CEngine/History.cpp | 1 + src/CalcManager/CEngine/scicomm.cpp | 2 ++ src/CalcManager/CEngine/scifunc.cpp | 1 + src/CalcManager/ExpressionCommandInterface.h | 1 + src/CalcManager/NumberFormattingUtils.h | 1 + 5 files changed, 6 insertions(+) diff --git a/src/CalcManager/CEngine/History.cpp b/src/CalcManager/CEngine/History.cpp index ea73e18ca..e002e62a6 100644 --- a/src/CalcManager/CEngine/History.cpp +++ b/src/CalcManager/CEngine/History.cpp @@ -4,6 +4,7 @@ #include "Header Files/CalcEngine.h" #include "Command.h" #include "ExpressionCommand.h" +#include "winerror_cross_platform.h" constexpr int ASCII_0 = 48; diff --git a/src/CalcManager/CEngine/scicomm.cpp b/src/CalcManager/CEngine/scicomm.cpp index e6017c892..d7655b277 100644 --- a/src/CalcManager/CEngine/scicomm.cpp +++ b/src/CalcManager/CEngine/scicomm.cpp @@ -13,7 +13,9 @@ * Author: \****************************************************************************/ +#include #include +#include #include "Header Files/CalcEngine.h" #include "Header Files/CalcUtils.h" #include "NumberFormattingUtils.h" diff --git a/src/CalcManager/CEngine/scifunc.cpp b/src/CalcManager/CEngine/scifunc.cpp index b767968a2..f6e1b6006 100644 --- a/src/CalcManager/CEngine/scifunc.cpp +++ b/src/CalcManager/CEngine/scifunc.cpp @@ -17,6 +17,7 @@ /*** ***/ /**************************************************************************/ #include "Header Files/CalcEngine.h" +#include "winerror_cross_platform.h" using namespace std; using namespace CalcEngine; diff --git a/src/CalcManager/ExpressionCommandInterface.h b/src/CalcManager/ExpressionCommandInterface.h index 4ea9b81b7..45f786b4d 100644 --- a/src/CalcManager/ExpressionCommandInterface.h +++ b/src/CalcManager/ExpressionCommandInterface.h @@ -6,6 +6,7 @@ #include // for std::shared_ptr #include #include "Command.h" +#include "sal_cross_platform.h" class ISerializeCommandVisitor; diff --git a/src/CalcManager/NumberFormattingUtils.h b/src/CalcManager/NumberFormattingUtils.h index 2f13ebfca..f5587fe69 100644 --- a/src/CalcManager/NumberFormattingUtils.h +++ b/src/CalcManager/NumberFormattingUtils.h @@ -4,6 +4,7 @@ #pragma once #include +#include "sal_cross_platform.h" namespace CalcManager::NumberFormattingUtils {