diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index 7424555132..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 2b7dbc67dc..d06b4c5826 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 @@ -58,7 +62,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