1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/games/pykawari/files/patch-build__src__misc__mmap.h
John Marino af6cfd5b0b Stage games/pykawari and unbreak on FreeBSD 10+
PR:		192797
Submitted by:	Ports Fury
2014-08-21 09:56:28 +00:00

26 lines
1.1 KiB
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=this->insert(typename TMMap<KeyType,DataType>::value_type(key,DataType()));
return((*it).second);
}
/*
@@ -43,7 +43,7 @@
void Add(const KeyType& key,const DataType& data)
{
// insert(pair<const KeyType,DataType>(key,data));
- insert(typename TMMap::value_type(key,data));
+ this->insert(typename TMMap::value_type(key,data));
}
};