mesa: Fix C++ includes in sampler.cpp
authorChad Versace <chad@chad-versace.us>
Mon, 1 Nov 2010 21:23:53 +0000 (14:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 2 Nov 2010 17:36:20 +0000 (10:36 -0700)
Some C++ header files were included in an extern "C" block. When building with
Clang, this caused the build to fail due to namespace errors. (GCC did not
report any errors.)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/program/sampler.cpp

index 0e58aef9c95db836c0d60ea1432d39b3bd5842a3..9a813c87955e0fb613342808eb014ee799367238 100644 (file)
  * DEALINGS IN THE SOFTWARE.
  */
 
-#include <stdio.h>
+#include <cstdio>
+#include "ir.h"
+#include "glsl_types.h"
+#include "ir_visitor.h"
 
 extern "C" {
 #include "main/compiler.h"
 #include "main/mtypes.h"
 #include "program/prog_parameter.h"
-#include "ir.h"
-#include "ir_visitor.h"
-#include "glsl_types.h"
 }
 
 static void fail_link(struct gl_shader_program *prog, const char *fmt, ...) PRINTFLIKE(2, 3);