This patch will get rid of the test on "limit.h"
Any objection? Abdel.
Index: qt3/moc/pch.h =================================================================== --- qt3/moc/pch.h (revision 13796) +++ qt3/moc/pch.h (working copy) @@ -15,9 +15,7 @@ #include <algorithm> #include <cmath> #include <iomanip> -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <climits> #include <map> #include <sstream> #include <stack> Index: qt3/pch.h =================================================================== --- qt3/pch.h (revision 13796) +++ qt3/pch.h (working copy) @@ -15,9 +15,7 @@ #include <algorithm> #include <cmath> #include <iomanip> -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <climits> #include <map> #include <sstream> #include <stack> Index: qt3/qttableview.C =================================================================== --- qt3/qttableview.C (revision 13796) +++ qt3/qttableview.C (working copy) @@ -19,10 +19,10 @@ #include "qscrollbar.h" #include "qpainter.h" -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <climits> +using namespace std; + /* Added by J. Levon for compilation with Qt 2.3.1 */ #ifndef Q_CHECK_PTR #define Q_CHECK_PTR CHECK_PTR Index: qt4/moc/pch.h =================================================================== --- qt4/moc/pch.h (revision 13796) +++ qt4/moc/pch.h (working copy) @@ -15,8 +15,7 @@ #include <algorithm> #include <cmath> #include <iomanip> -#ifdef HAVE_LIMITS_H -# include <limits.h> +#include <climits> #endif #include <map> #include <sstream> Index: qt4/pch.h =================================================================== --- qt4/pch.h (revision 13796) +++ qt4/pch.h (working copy) @@ -15,9 +15,7 @@ #include <algorithm> #include <cmath> #include <iomanip> -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <climits> #include <map> #include <sstream> #include <stack> Index: qt4/ui/pch.h =================================================================== --- qt4/ui/pch.h (revision 13796) +++ qt4/ui/pch.h (working copy) @@ -15,9 +15,7 @@ #include <algorithm> #include <cmath> #include <iomanip> -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <climits> #include <map> #include <sstream> #include <stack>
