OSDN Git Service

Fix build issues.
authorNicolas Capens <capn@google.com>
Tue, 19 Dec 2017 05:07:50 +0000 (00:07 -0500)
committerNicolas Capens <nicolascapens@google.com>
Tue, 19 Dec 2017 05:09:27 +0000 (05:09 +0000)
Change-Id: I93171764df5e13a7a5be6a9116e1a5db1ed59ad5
Reviewed-on: https://swiftshader-review.googlesource.com/15268
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/OpenGL/compiler/ParseHelper.cpp
src/OpenGL/compiler/preprocessor/ExpressionParser.cpp
src/OpenGL/compiler/preprocessor/ExpressionParser.y
src/OpenGL/libGLESv2/Program.cpp

index cb513de..0be554f 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "ParseHelper.h"
 
+#include <limits>
 #include <stdarg.h>
 #include <stdio.h>
 
index ab561b8..25f38cb 100644 (file)
 #include <stdlib.h>
 #endif
 
+#include <limits>
 #include <cassert>
 #include <sstream>
 #include <stdint.h>
index af5abd8..5342935 100644 (file)
@@ -55,6 +55,7 @@ WHICH GENERATES THE GLSL ES preprocessor expression parser.
 #include <stdlib.h>
 #endif
 
+#include <limits>
 #include <cassert>
 #include <sstream>
 #include <stdint.h>
index d0bba34..5abf345 100644 (file)
@@ -1665,7 +1665,7 @@ namespace es2
                        return attribute.location;
                }
 
-               std::unordered_map<std::string, GLuint>::const_iterator it = linkedAttributeLocation.find(attribute.name);
+               std::map<std::string, GLuint>::const_iterator it = linkedAttributeLocation.find(attribute.name);
                if(it != linkedAttributeLocation.end())
                {
                        return it->second;