
--- mythtv/libs/libmythui/mythgesture.cpp.orig	2013-11-02 09:19:17.000000000 -0400
+++ mythtv/libs/libmythui/mythgesture.cpp	2013-11-29 21:28:27.000000000 -0500
@@ -29,6 +29,8 @@
 #include "mythgesture.h"
 
 #include <cmath>
+#include <stdlib.h>     /* abs */
+using namespace std;
 #include <algorithm>
 
 #include <QMutex>

--- mythtv/libs/libmythui/mythpainter.cpp.orig	2013-11-02 09:19:17.000000000 -0400
+++ mythtv/libs/libmythui/mythpainter.cpp	2013-11-29 21:43:32.000000000 -0500
@@ -1,5 +1,7 @@
 #include <stdint.h>
 #include <algorithm>
+#include <cmath>        // std::abs
+using namespace std;
 
 // QT headers
 #include <QRect>
@@ -212,7 +214,7 @@
 
     QFontMetrics fm(font.face());
     int totalHeight = fm.height() + outlineSize +
-        std::max(outlineSize, std::abs(shadowOffset.y()));
+        std::max(outlineSize, abs((shadowOffset.y())));
 
     // initialPaddingX is the number of pixels from the left of the
     // input QRect to the left of the actual text.  It is always 0

--- mythtv/libs/libmythui/mythuisimpletext.cpp.orig	2013-11-02 09:19:17.000000000 -0400
+++ mythtv/libs/libmythui/mythuisimpletext.cpp	2013-11-29 21:31:40.000000000 -0500
@@ -17,6 +17,9 @@
 
 #include "compat.h"
 
+#include <cmath>        // std::abs
+using namespace std;
+
 MythUISimpleText::MythUISimpleText(MythUIType *parent, const QString &name)
     : MythUIType(parent, name),
       m_Justification(Qt::AlignLeft | Qt::AlignTop)
