| commit | d5c31dab45f0e3cca2450411b7554e333c053419 | [log] [tgz] |
|---|---|---|
| author | Alexis Hetu <sugoi@google.com> | Fri Aug 28 14:39:13 2015 -0400 |
| committer | Alexis Hétu <sugoi@google.com> | Fri Aug 28 18:43:07 2015 +0000 |
| tree | 2b4f46d1e2e79aa9ebe748e82a76f73b764720db | |
| parent | c4f2c2970f43bfe8a89289a3300fd68e01ff0976 [diff] [blame] |
Build fix for Linux Adding the proper #include <limits.h> for Linux when using INT_MAX and/or UINT_MAX. Fixed ShaderCore.cpp and preemptively fixed libGLESv3.cpp. Change-Id: Iedd445157f3de8c08394e6d2c9f99539eb123845 Reviewed-on: https://swiftshader-review.googlesource.com/3933 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Shader/ShaderCore.cpp b/src/Shader/ShaderCore.cpp index c7e86c1..17659cf 100644 --- a/src/Shader/ShaderCore.cpp +++ b/src/Shader/ShaderCore.cpp
@@ -14,6 +14,8 @@ #include "Renderer/Renderer.hpp" #include "Common/Debug.hpp" +#include <limits.h> + namespace sw { extern TranscendentalPrecision logPrecision;