Add missing includes

A few more instances of missing <algorithm> for std::max
This commit is contained in:
Simon Richter 2020-05-08 16:34:28 +02:00
parent 4165ec3384
commit 632494cba7
6 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include "buffers_debug.h" #include "buffers_debug.h"
#include <cstring> // For memcpy #include <cstring> // For memcpy
#include <algorithm>
#include <atomic> #include <atomic>
#include <thread> #include <thread>
#include <chrono> #include <chrono>

View File

@ -30,6 +30,8 @@
#include <grid_tricks.h> #include <grid_tricks.h>
#include <widgets/wx_grid.h> #include <widgets/wx_grid.h>
#include <algorithm>
enum TEXT_VAR_GRID_COLUMNS enum TEXT_VAR_GRID_COLUMNS
{ {
TV_NAME_COL = 0, TV_NAME_COL = 0,

View File

@ -20,6 +20,8 @@
#include <wx/wx.h> #include <wx/wx.h>
#include <widgets/ui_common.h> #include <widgets/ui_common.h>
#include <algorithm>
int KIUI::GetStdMargin() int KIUI::GetStdMargin()
{ {

View File

@ -26,6 +26,8 @@
#include <wx/wx.h> #include <wx/wx.h>
#include "wx_grid.h" #include "wx_grid.h"
#include <algorithm>
#define MIN_GRIDCELL_MARGIN 3 #define MIN_GRIDCELL_MARGIN 3

View File

@ -37,6 +37,8 @@
#include <stdexcept> #include <stdexcept>
#include <algorithm>
using namespace std; using namespace std;
static const wxChar* const traceNgspice = wxT( "KICAD_NGSPICE" ); static const wxChar* const traceNgspice = wxT( "KICAD_NGSPICE" );

View File

@ -79,6 +79,8 @@
#include <deque> #include <deque>
#include <algorithm>
// For memory leak debug // For memory leak debug
#ifdef _WINDOWS #ifdef _WINDOWS
#ifdef _DEBUG #ifdef _DEBUG