From 632494cba75d65053476eb3510354fbfe9279e55 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Fri, 8 May 2020 16:34:28 +0200 Subject: [PATCH] Add missing includes A few more instances of missing for std::max --- 3d-viewer/3d_rendering/cimage.cpp | 1 + common/dialogs/panel_text_variables.cpp | 2 ++ common/widgets/ui_common.cpp | 2 ++ common/widgets/wx_grid.cpp | 2 ++ eeschema/sim/ngspice.cpp | 2 ++ include/widgets/mathplot.h | 2 ++ 6 files changed, 11 insertions(+) diff --git a/3d-viewer/3d_rendering/cimage.cpp b/3d-viewer/3d_rendering/cimage.cpp index 67dbf4afa1..8af41fe550 100644 --- a/3d-viewer/3d_rendering/cimage.cpp +++ b/3d-viewer/3d_rendering/cimage.cpp @@ -31,6 +31,7 @@ #include "buffers_debug.h" #include // For memcpy +#include #include #include #include diff --git a/common/dialogs/panel_text_variables.cpp b/common/dialogs/panel_text_variables.cpp index c92aae142b..3bd04f97bb 100644 --- a/common/dialogs/panel_text_variables.cpp +++ b/common/dialogs/panel_text_variables.cpp @@ -30,6 +30,8 @@ #include #include +#include + enum TEXT_VAR_GRID_COLUMNS { TV_NAME_COL = 0, diff --git a/common/widgets/ui_common.cpp b/common/widgets/ui_common.cpp index 71852a6c30..377dc09eed 100644 --- a/common/widgets/ui_common.cpp +++ b/common/widgets/ui_common.cpp @@ -20,6 +20,8 @@ #include #include +#include + int KIUI::GetStdMargin() { diff --git a/common/widgets/wx_grid.cpp b/common/widgets/wx_grid.cpp index bb63d4713a..2226a17923 100644 --- a/common/widgets/wx_grid.cpp +++ b/common/widgets/wx_grid.cpp @@ -26,6 +26,8 @@ #include #include "wx_grid.h" +#include + #define MIN_GRIDCELL_MARGIN 3 diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index 3f91315546..58337e3ae9 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -37,6 +37,8 @@ #include +#include + using namespace std; static const wxChar* const traceNgspice = wxT( "KICAD_NGSPICE" ); diff --git a/include/widgets/mathplot.h b/include/widgets/mathplot.h index dd6cde9618..16bfe085fa 100644 --- a/include/widgets/mathplot.h +++ b/include/widgets/mathplot.h @@ -79,6 +79,8 @@ #include +#include + // For memory leak debug #ifdef _WINDOWS #ifdef _DEBUG