From 61c59234f916406512b3591f46599cc29a5d8e23 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 3 Feb 2011 19:19:12 -0800 Subject: glsl: Add using statements for standard library functions. Standard library functions in C++ are in the std namespace. When using C++-style header files for the standard library, some compilers, such as Sun Studio, provide symbols only for the std namespace and not for the global namespace. This patch adds using statements for standard library functions. Another option could have been to prepend standard library function calls with 'std::'. This patch fixes several compilation errors with Sun Studio. --- src/glsl/ast_expr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glsl/ast_expr.cpp') diff --git a/src/glsl/ast_expr.cpp b/src/glsl/ast_expr.cpp index 4e83decb92..974beb9f61 100644 --- a/src/glsl/ast_expr.cpp +++ b/src/glsl/ast_expr.cpp @@ -24,6 +24,8 @@ #include #include "ast.h" +using std::printf; + const char * ast_expression::operator_string(enum ast_operators op) { -- cgit v1.2.3