From: Alexis Hetu Date: Fri, 28 Aug 2015 18:39:13 +0000 (-0400) Subject: Build fix for Linux X-Git-Tag: android-x86-7.1-r1~869 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d5c31dab45f0e3cca2450411b7554e333c053419;p=android-x86%2Fexternal-swiftshader.git Build fix for Linux Adding the proper #include 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 Reviewed-by: Nicolas Capens --- diff --git a/src/OpenGL/libGLESv2/libGLESv3.cpp b/src/OpenGL/libGLESv2/libGLESv3.cpp index 37e9c3023..6faa76f75 100644 --- a/src/OpenGL/libGLESv2/libGLESv3.cpp +++ b/src/OpenGL/libGLESv2/libGLESv3.cpp @@ -23,6 +23,8 @@ #include #include +#include + using namespace es2; typedef std::pair InternalFormatTypePair; diff --git a/src/Shader/ShaderCore.cpp b/src/Shader/ShaderCore.cpp index c7e86c1da..17659cfc4 100644 --- a/src/Shader/ShaderCore.cpp +++ b/src/Shader/ShaderCore.cpp @@ -14,6 +14,8 @@ #include "Renderer/Renderer.hpp" #include "Common/Debug.hpp" +#include + namespace sw { extern TranscendentalPrecision logPrecision;