summaryrefslogtreecommitdiff
path: root/src/glsl/ast_type.cpp
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2011-02-03 19:19:12 -0800
committerVinson Lee <vlee@vmware.com>2011-02-03 19:19:12 -0800
commit61c59234f916406512b3591f46599cc29a5d8e23 (patch)
tree06e26d737b09487630fc685e234705a99bc667e5 /src/glsl/ast_type.cpp
parent151a945d38d8c9231799b00364c5b85c8a4b2279 (diff)
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.
Diffstat (limited to 'src/glsl/ast_type.cpp')
-rw-r--r--src/glsl/ast_type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp
index d14077473f0..5ddfeec8724 100644
--- a/src/glsl/ast_type.cpp
+++ b/src/glsl/ast_type.cpp
@@ -27,6 +27,8 @@ extern "C" {
#include "program/symbol_table.h"
}
+using std::printf;
+
void
ast_type_specifier::print(void) const
{