freebsd-ports/games/pykawari/files/patch-build__src__misc__mmap.h
Gabor Kovesdan 92ca1fc28a - Update to 8.2.8
- Unbreak on GCC 4.X

PR:		ports/131085
Submitted by:	UMENO Takashi <umeno@rr.iij4u.or.jp> (maintainer)
2009-03-03 05:42:18 +00:00

16 lines
912 B
C++

--- ./build/src/misc/mmap.h.orig 2009-03-02 17:17:28.000000000 +0100
+++ ./build/src/misc/mmap.h 2009-03-02 17:17:37.000000000 +0100
@@ -24,11 +24,11 @@
{
// iterator it=lower_bound(key);
// std::multimap<KeyType,DataType>::iterator it;
- typename std::multimap<KeyType, DataType>::iterator it=lower_bound(key);
+ typename std::multimap<KeyType, DataType>::iterator it=std::multimap<KeyType, DataType>::lower_bound(key);
// 2001/12/16 suikyo@yk.rim.or.jp : imortal entry bug
// if(it==end()) it=insert(pair<KeyType,DataType>(key,DataType()));
// if(it==upper_bound(key)) it=insert(pair<const KeyType,DataType>(key,DataType()));
- if(it==upper_bound(key)) it=insert(typename TMMap<KeyType,DataType>::value_type(key,DataType()));
+ if(it==std::multimap<KeyType, DataType>::upper_bound(key)) it=insert(typename TMMap<KeyType,DataType>::value_type(key,DataType()));
return((*it).second);
}
/*