Skip to content

Commit

Permalink
Included <algorithm> with VC 2017 and lower
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmonik committed Jan 5, 2024
1 parent 4d1ee0f commit 6127042
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Orbitersdk/include/DrawAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
#include <assert.h>
#include <xmmintrin.h>

#if defined(_MSC_VER) && (_MSC_VER < 1920 ) // Microsoft Visual Studio Version 2017 and lower
#include <algorithm>
#endif

#ifdef D3D9CLIENT_EXPORTS
#include "d3dx9.h"
#endif
Expand Down
4 changes: 4 additions & 0 deletions Orbitersdk/include/OrbiterAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#include <math.h>
#include <vector>

#if defined(_MSC_VER) && (_MSC_VER < 1920 ) // Microsoft Visual Studio Version 2017 and lower
#include <algorithm>
#endif

extern "C" {
#include "Lua/lua.h"
}
Expand Down
4 changes: 4 additions & 0 deletions Orbitersdk/include/VesselAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#ifndef __VESSELAPI_H
#define __VESSELAPI_H

#if defined(_MSC_VER) && (_MSC_VER < 1920 ) // Microsoft Visual Studio Version 2017 and lower
#include <algorithm>
#endif

// reference frame flags
#define FRAME_ECL 0
#define FRAME_EQU 1
Expand Down

0 comments on commit 6127042

Please sign in to comment.