mesa: Prevent classic swrast crash on a surfaceless context v2.
[mesa.git] / src / mesa / program / prog_print.h
index cd61568e9c719bc9dd42094f1e7175e7fb4ac1a5..89fc42363cd86ad403018d46cbaa530dcff075ca 100644 (file)
 #include <stdio.h>
 
 #include "main/glheader.h"
-#include "main/mtypes.h"
+#include "prog_parameter.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 struct gl_program;
 struct gl_program_parameter_list;
@@ -112,7 +118,12 @@ extern void
 _mesa_write_shader_to_file(const struct gl_shader *shader);
 
 extern void
-_mesa_append_uniforms_to_file(const struct gl_shader *shader);
+_mesa_append_uniforms_to_file(const struct gl_program *prog);
+
+
+#ifdef __cplusplus
+}
+#endif
 
 
 #endif /* PROG_PRINT_H */