Skip to content

Commit

Permalink
Fix compilation errors (gcc 4.6.2)
Browse files Browse the repository at this point in the history
* error: '>>' should be '> >' within a nested template argument list
* error: 'SIZE_MAX' was not declared in this scope
  • Loading branch information
Johannes Holzfuß authored and Johannes Holzfuß committed Dec 9, 2011
1 parent 66739d1 commit 9951685
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pngwolf.cxx
Expand Up @@ -52,6 +52,10 @@
#include <map>
#include <bitset>

#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)-1)
#endif

#ifdef _MSC_VER
#pragma warning(push, 4)
#pragma warning(disable: 4996)
Expand Down Expand Up @@ -168,7 +172,7 @@ class PngWolf {
std::vector<char> original_unfiltered;

//
std::map<PngFilter, std::vector<char>> flt_singles;
std::map<PngFilter, std::vector<char> > flt_singles;

//
std::map<uint32_t, size_t> invis_colors;
Expand Down

0 comments on commit 9951685

Please sign in to comment.