diff options
author | Vinson Lee <vlee@vmware.com> | 2011-02-03 19:19:12 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2011-02-03 19:19:12 -0800 |
commit | 61c59234f916406512b3591f46599cc29a5d8e23 (patch) | |
tree | 06e26d737b09487630fc685e234705a99bc667e5 /src/glsl/lower_mat_op_to_vec.cpp | |
parent | 151a945d38d8c9231799b00364c5b85c8a4b2279 (diff) | |
download | external_mesa3d-61c59234f916406512b3591f46599cc29a5d8e23.zip external_mesa3d-61c59234f916406512b3591f46599cc29a5d8e23.tar.gz external_mesa3d-61c59234f916406512b3591f46599cc29a5d8e23.tar.bz2 |
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/lower_mat_op_to_vec.cpp')
-rw-r--r-- | src/glsl/lower_mat_op_to_vec.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/lower_mat_op_to_vec.cpp b/src/glsl/lower_mat_op_to_vec.cpp index 8cbbfa7..bdc53a1 100644 --- a/src/glsl/lower_mat_op_to_vec.cpp +++ b/src/glsl/lower_mat_op_to_vec.cpp @@ -35,6 +35,9 @@ #include "ir_expression_flattening.h" #include "glsl_types.h" +using std::abort; +using std::printf; + class ir_mat_op_to_vec_visitor : public ir_hierarchical_visitor { public: ir_mat_op_to_vec_visitor() |