Minor GCC fixes

- Added missing typename keyword - Use proper filenames includes (this matters when cross compiling on case sensitive OSes) - Added <string> include where GCC requires it - Avoid collision between enum variables and template params Issue=358 Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/trunk@1261 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent db2115d8
...@@ -42,7 +42,7 @@ class ShaderCache ...@@ -42,7 +42,7 @@ class ShaderCache
ShaderObject *create(const DWORD *function, size_t length) ShaderObject *create(const DWORD *function, size_t length)
{ {
std::string key(reinterpret_cast<const char*>(function), length); std::string key(reinterpret_cast<const char*>(function), length);
Map::iterator it = mMap.find(key); typename Map::iterator it = mMap.find(key);
if (it != mMap.end()) if (it != mMap.end())
{ {
it->second->AddRef(); it->second->AddRef();
...@@ -71,7 +71,7 @@ class ShaderCache ...@@ -71,7 +71,7 @@ class ShaderCache
void clear() void clear()
{ {
for (Map::iterator it = mMap.begin(); it != mMap.end(); ++it) for (typename Map::iterator it = mMap.begin(); it != mMap.end(); ++it)
{ {
it->second->Release(); it->second->Release();
} }
......
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
#include "libGLESv2/ResourceManager.h" #include "libGLESv2/ResourceManager.h"
#include "libGLESv2/Buffer.h" #include "libGLESv2/Buffer.h"
#include "libGLESv2/Fence.h" #include "libGLESv2/Fence.h"
#include "libGLESv2/FrameBuffer.h" #include "libGLESv2/Framebuffer.h"
#include "libGLESv2/Program.h" #include "libGLESv2/Program.h"
#include "libGLESv2/ProgramBinary.h" #include "libGLESv2/ProgramBinary.h"
#include "libGLESv2/Query.h" #include "libGLESv2/Query.h"
#include "libGLESv2/RenderBuffer.h" #include "libGLESv2/Renderbuffer.h"
#include "libGLESv2/Shader.h" #include "libGLESv2/Shader.h"
#include "libGLESv2/Texture.h" #include "libGLESv2/Texture.h"
#include "libGLESv2/VertexDataManager.h" #include "libGLESv2/VertexDataManager.h"
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#define LIBGLESV2_PROGRAM_BINARY_H_ #define LIBGLESV2_PROGRAM_BINARY_H_
#define GL_APICALL #define GL_APICALL
#include <gles2/gl2.h> #include <GLES2/gl2.h>
#include <gles2/gl2ext.h> #include <GLES2/gl2ext.h>
#include <d3dx9.h> #include <d3dx9.h>
#include <d3dcompiler.h> #include <d3dcompiler.h>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "libGLESv2/Buffer.h" #include "libGLESv2/Buffer.h"
#include "libGLESv2/Program.h" #include "libGLESv2/Program.h"
#include "libGLESv2/RenderBuffer.h" #include "libGLESv2/Renderbuffer.h"
#include "libGLESv2/Shader.h" #include "libGLESv2/Shader.h"
#include "libGLESv2/Texture.h" #include "libGLESv2/Texture.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <string> #include <string>
#include "GLSLANG/Shaderlang.h" #include "GLSLANG/ShaderLang.h"
#include "libGLESv2/main.h" #include "libGLESv2/main.h"
#include "libGLESv2/utilities.h" #include "libGLESv2/utilities.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define GL_APICALL #define GL_APICALL
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <d3dx9.h> #include <d3dx9.h>
#include <string>
#include <list> #include <list>
#include <vector> #include <vector>
......
...@@ -390,11 +390,11 @@ struct VertexTypeFlags ...@@ -390,11 +390,11 @@ struct VertexTypeFlags
{ {
}; };
template <unsigned int capflag, unsigned int declflag> template <unsigned int _capflag, unsigned int _declflag>
struct VertexTypeFlagsHelper struct VertexTypeFlagsHelper
{ {
enum { capflag = capflag }; enum { capflag = _capflag };
enum { declflag = declflag }; enum { declflag = _declflag };
}; };
template <> struct VertexTypeFlags<D3DVT_FLOAT, 1> : VertexTypeFlagsHelper<0, D3DDECLTYPE_FLOAT1> { }; template <> struct VertexTypeFlags<D3DVT_FLOAT, 1> : VertexTypeFlagsHelper<0, D3DDECLTYPE_FLOAT1> { };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment