From d5c31dab45f0e3cca2450411b7554e333c053419 Mon Sep 17 00:00:00 2001 From: Alexis Hetu Date: Fri, 28 Aug 2015 14:39:13 -0400 Subject: [PATCH] Build fix for Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/OpenGL/libGLESv2/libGLESv3.cpp | 2 ++ src/Shader/ShaderCore.cpp | 2 ++ 2 files changed, 4 insertions(+) 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; -- 2.11.0