diff options
author | Dave Airlie <airlied@linux.ie> | 2008-05-03 23:01:20 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-05-03 23:01:20 +1000 |
commit | 1b0d963dc0591452f211a155fe4bae1a868401a6 (patch) | |
tree | 84e5458b684951ccd4636cdd2962da1eb7d92032 | |
parent | 42b9bf92805046f3942d992518e89a3514c425c4 (diff) |
piglit fix for latest c++ compilers
-rw-r--r-- | tests/glean/environ.cpp | 1 | ||||
-rw-r--r-- | tests/glean/glutils.cpp | 1 | ||||
-rw-r--r-- | tests/glean/main.cpp | 1 | ||||
-rw-r--r-- | tests/glean/tapi2.cpp | 4 | ||||
-rw-r--r-- | tests/glean/tblend.cpp | 1 | ||||
-rw-r--r-- | tests/glean/tdepthstencil.cpp | 2 | ||||
-rw-r--r-- | tests/glean/tfragprog1.cpp | 1 | ||||
-rw-r--r-- | tests/glean/tglsl1.cpp | 3 | ||||
-rw-r--r-- | tests/glean/tlogicop.cpp | 1 | ||||
-rw-r--r-- | tests/glean/toccluqry.cpp | 4 | ||||
-rw-r--r-- | tests/glean/tpaths.cpp | 1 | ||||
-rw-r--r-- | tests/glean/tpbo.cpp | 4 | ||||
-rw-r--r-- | tests/glean/tpixelformats.cpp | 1 | ||||
-rw-r--r-- | tests/glean/tpointsprite.cpp | 4 | ||||
-rw-r--r-- | tests/glean/ttexenv.cpp | 3 | ||||
-rw-r--r-- | tests/glean/ttexture_srgb.cpp | 1 | ||||
-rw-r--r-- | tests/glean/tvertattrib.cpp | 3 | ||||
-rw-r--r-- | tests/glean/tvertprog1.cpp | 2 |
18 files changed, 30 insertions, 8 deletions
diff --git a/tests/glean/environ.cpp b/tests/glean/environ.cpp index 39d8815c..fac0f669 100644 --- a/tests/glean/environ.cpp +++ b/tests/glean/environ.cpp @@ -39,6 +39,7 @@ #include <fcntl.h> #include <unistd.h> #include <errno.h> +#include <stdlib.h> #elif defined(__MS__) #include <sys/stat.h> diff --git a/tests/glean/glutils.cpp b/tests/glean/glutils.cpp index 4b38d620..df19c8ca 100644 --- a/tests/glean/glutils.cpp +++ b/tests/glean/glutils.cpp @@ -36,6 +36,7 @@ #include "environ.h" #include "lex.h" #include "glutils.h" +#include <cstdlib> #if defined(__X11__) # include <dlfcn.h> #endif diff --git a/tests/glean/main.cpp b/tests/glean/main.cpp index b7a1d2d5..492226a4 100644 --- a/tests/glean/main.cpp +++ b/tests/glean/main.cpp @@ -37,6 +37,7 @@ using namespace std; #include <iostream> #include <string> #include <vector> +#include <cstring> #include <algorithm> #include "options.h" #include "environ.h" diff --git a/tests/glean/tapi2.cpp b/tests/glean/tapi2.cpp index d6860e2d..2b39f4f5 100644 --- a/tests/glean/tapi2.cpp +++ b/tests/glean/tapi2.cpp @@ -33,7 +33,9 @@ #include "tapi2.h" #include <cassert> -#include <math.h> +#include <cstring> +#include <cstdlib> +#include <cmath> namespace GLEAN { diff --git a/tests/glean/tblend.cpp b/tests/glean/tblend.cpp index 3fb8d611..58ae2c2e 100644 --- a/tests/glean/tblend.cpp +++ b/tests/glean/tblend.cpp @@ -33,6 +33,7 @@ #include "rand.h" #include "image.h" #include <cmath> +#include <cstdlib> #define ELEMENTS(ARRAY) (sizeof(ARRAY) / sizeof(ARRAY[0])) diff --git a/tests/glean/tdepthstencil.cpp b/tests/glean/tdepthstencil.cpp index 945d8bd1..110eb565 100644 --- a/tests/glean/tdepthstencil.cpp +++ b/tests/glean/tdepthstencil.cpp @@ -36,6 +36,8 @@ #include "image.h" #include <cassert> #include <cmath> +#include <cstdlib> +#include <cstring> #ifdef GL_EXT_packed_depth_stencil diff --git a/tests/glean/tfragprog1.cpp b/tests/glean/tfragprog1.cpp index b1a59bd9..90790b14 100644 --- a/tests/glean/tfragprog1.cpp +++ b/tests/glean/tfragprog1.cpp @@ -41,6 +41,7 @@ #include "tfragprog1.h" #include <cassert> +#include <cstring> #include <cmath> #include <math.h> diff --git a/tests/glean/tglsl1.cpp b/tests/glean/tglsl1.cpp index cd792e47..088066c6 100644 --- a/tests/glean/tglsl1.cpp +++ b/tests/glean/tglsl1.cpp @@ -33,7 +33,8 @@ #include "tglsl1.h" #include <cassert> -#include <math.h> +#include <cstring> +#include <cmath> namespace GLEAN { diff --git a/tests/glean/tlogicop.cpp b/tests/glean/tlogicop.cpp index 06a80cfc..d9fcfc9c 100644 --- a/tests/glean/tlogicop.cpp +++ b/tests/glean/tlogicop.cpp @@ -34,6 +34,7 @@ #include "rand.h" #include "image.h" #include <cmath> +#include <cstdlib> namespace { diff --git a/tests/glean/toccluqry.cpp b/tests/glean/toccluqry.cpp index 7cc49b44..2359bb6b 100644 --- a/tests/glean/toccluqry.cpp +++ b/tests/glean/toccluqry.cpp @@ -35,7 +35,9 @@ #define GL_GLEXT_PROTOTYPES #include "toccluqry.h" #include <cassert> -#include <stdio.h> +#include <cstdlib> +#include <cstdio> +#include <cstring> #include <cmath> diff --git a/tests/glean/tpaths.cpp b/tests/glean/tpaths.cpp index 00926ea1..1683b4e7 100644 --- a/tests/glean/tpaths.cpp +++ b/tests/glean/tpaths.cpp @@ -42,6 +42,7 @@ // Author: Brian Paul (brianp@valinux.com) November 2000 #include "tpaths.h" +#include <cstdlib> namespace GLEAN { diff --git a/tests/glean/tpbo.cpp b/tests/glean/tpbo.cpp index 4642690d..0b5e7c2e 100644 --- a/tests/glean/tpbo.cpp +++ b/tests/glean/tpbo.cpp @@ -36,7 +36,9 @@ #define GL_GLEXT_PROTOTYPES
#include "tpbo.h"
#include <cassert>
-#include <math.h>
+#include <cmath>
+#include <cstdlib>
+#include <cstring>
#include "timer.h"
namespace GLEAN
{
diff --git a/tests/glean/tpixelformats.cpp b/tests/glean/tpixelformats.cpp index 1a43eae4..1d367faf 100644 --- a/tests/glean/tpixelformats.cpp +++ b/tests/glean/tpixelformats.cpp @@ -30,6 +30,7 @@ #include "tpixelformats.h" #include <cassert> #include <cmath> +#include <cstdlib> // Set to 1 to help debug test failures: diff --git a/tests/glean/tpointsprite.cpp b/tests/glean/tpointsprite.cpp index 47cff89a..c098d915 100644 --- a/tests/glean/tpointsprite.cpp +++ b/tests/glean/tpointsprite.cpp @@ -43,7 +43,9 @@ #include "tpointsprite.h" #include <cassert> #include <cmath> -#include <stdio.h> +#include <cstring> +#include <cstdio> +#include <cstdlib> namespace GLEAN { diff --git a/tests/glean/ttexenv.cpp b/tests/glean/ttexenv.cpp index 223f53cf..9f593c49 100644 --- a/tests/glean/ttexenv.cpp +++ b/tests/glean/ttexenv.cpp @@ -42,7 +42,8 @@ #include "ttexenv.h" #include <cassert> -#include <stdio.h> +#include <cstdio> +#include <cstdlib> #include <cmath> namespace GLEAN { diff --git a/tests/glean/ttexture_srgb.cpp b/tests/glean/ttexture_srgb.cpp index 809a56a6..b125976e 100644 --- a/tests/glean/ttexture_srgb.cpp +++ b/tests/glean/ttexture_srgb.cpp @@ -34,6 +34,7 @@ #include "rand.h" #include <cassert> #include <cmath> +#include <cstring> #ifdef GL_EXT_texture_sRGB diff --git a/tests/glean/tvertattrib.cpp b/tests/glean/tvertattrib.cpp index fd7e12cb..7449292f 100644 --- a/tests/glean/tvertattrib.cpp +++ b/tests/glean/tvertattrib.cpp @@ -45,7 +45,8 @@ // Author: Brian Paul (brian.paul a t tungstengraphics.com) October 2004 -#include <math.h> +#include <cmath> +#include <cstdlib> #include "tvertattrib.h" #include "glutils.h" #include <cassert> diff --git a/tests/glean/tvertprog1.cpp b/tests/glean/tvertprog1.cpp index ac65fc6c..a1f82966 100644 --- a/tests/glean/tvertprog1.cpp +++ b/tests/glean/tvertprog1.cpp @@ -34,7 +34,7 @@ #include "tvertprog1.h" #include <cassert> #include <cmath> -#include <math.h> +#include <cstring> namespace GLEAN { |