diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index 072f1f36f2..18f744932d 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -1,6 +1,10 @@ #include "graphicspage.hpp" +#if BOOST_VERSION >= 106500 +#include +#else #include +#endif #include #include #include @@ -18,7 +22,11 @@ QString getAspect(int x, int y) { +#if BOOST_VERSION >= 106500 + int gcd = boost::integer::gcd (x, y); +#else int gcd = boost::math::gcd (x, y); +#endif 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 c41d43b315..7a46f31899 100644 --- a/apps/openmw/mwgui/settingswindow.cpp +++ b/apps/openmw/mwgui/settingswindow.cpp @@ -8,7 +8,11 @@ #include #include +#if BOOST_VERSION >= 106500 +#include +#else #include +#endif #include @@ -59,7 +63,11 @@ namespace std::string getAspect (int x, int y) { +#if BOOST_VERSION >= 106500 + int gcd = boost::integer::gcd (x, y); +#else int gcd = boost::math::gcd (x, y); +#endif int xaspect = x / gcd; int yaspect = y / gcd; // special case: 8 : 5 is usually referred to as 16:10