From dbf149f9b22acc6c984ee7e168f535f2c4d74607 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Sat, 10 Jun 2017 00:51:19 +0200 Subject: [PATCH] gcd is not available in msvc until 2017.3 P2, back to boost::math::gcd for now --- apps/launcher/graphicspage.cpp | 3 ++- apps/openmw/mwgui/settingswindow.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index 022404ec8..d3dbfa559 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -1,5 +1,6 @@ #include "graphicspage.hpp" +#include #include #include #include @@ -16,7 +17,7 @@ QString getAspect(int x, int y) { - int gcd = std::__gcd (x, y); + int gcd = boost::math::gcd (x, y); int xaspect = x / gcd; int yaspect = y / gcd; // special case: 8 : 5 is usually referred to as 16:10 diff --git a/apps/openmw/mwgui/settingswindow.cpp b/apps/openmw/mwgui/settingswindow.cpp index 398fe8ae7..f46199c80 100644 --- a/apps/openmw/mwgui/settingswindow.cpp +++ b/apps/openmw/mwgui/settingswindow.cpp @@ -8,6 +8,7 @@ #include #include +#include #include @@ -54,7 +55,7 @@ namespace std::string getAspect (int x, int y) { - int gcd = std::__gcd (x, y); + int gcd = boost::math::gcd (x, y); int xaspect = x / gcd; int yaspect = y / gcd; // special case: 8 : 5 is usually referred to as 16:10