Ticket #8789: scummvm_beos.2.patch
File scummvm_beos.2.patch, 3.0 KB (added by , 16 years ago) |
---|
-
configure
old new 955 955 echo_n "Checking hosttype... " 956 956 echo $_host_os 957 957 case $_host_os in 958 linux* | uclinux* | openbsd* | freebsd* | netbsd* | bsd* | sunos* | hpux* | beos*)958 linux* | uclinux* | openbsd* | freebsd* | netbsd* | bsd* | sunos* | hpux* ) 959 959 DEFINES="$DEFINES -DUNIX" 960 960 ;; 961 beos*) 962 DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE" 963 LIBS="$LIBS -lbind -lsocket" 964 LDFLAGS="$LDFLAGS" 965 type_1_byte='char' 966 type_2_byte='short' 967 type_4_byte='long' 968 ;; 961 969 solaris*) 962 970 DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE" 963 971 ;; … … 1266 1274 fi 1267 1275 1268 1276 # 1277 # Check for math lib 1278 # 1279 cc_check $LDFLAGS $CXXFLAGS -lm && LDFLAGS="$LDFLAGS -lm" 1280 1281 # 1269 1282 # Check for Ogg Vorbis 1270 1283 # 1271 1284 echocheck "Ogg Vorbis" … … 1276 1289 int main(void) { vorbis_packet_blocksize(0,0); return 0; } 1277 1290 EOF 1278 1291 cc_check $LDFLAGS $CXXFLAGS $OGG_CFLAGS $OGG_LIBS $VORBIS_CFLAGS $VORBIS_LIBS \ 1279 -lvorbisfile -lvorbis -logg -lm&& _vorbis=yes1292 -lvorbisfile -lvorbis -logg && _vorbis=yes 1280 1293 fi 1281 1294 if test "$_vorbis" = yes ; then 1282 1295 _def_vorbis='#define USE_VORBIS' … … 1328 1341 int main(void) { return FLAC__STREAM_SYNC_LEN >> 30; /* guaranteed to be 0 */ } 1329 1342 EOF 1330 1343 cc_check $LDFLAGS $CXXFLAGS $FLAC_CFLAGS $FLAC_LIBS $OGG_CFLAGS $OGG_LIBS \ 1331 -lFLAC -logg -lm&& _flac=yes1344 -lFLAC -logg && _flac=yes 1332 1345 fi 1333 1346 if test "$_flac" = yes ; then 1334 1347 _def_flac='#define USE_FLAC' -
common/hashmap.h
old new 18 18 * along with this program; if not, write to the Free Software 19 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 * $URL : https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/branch-0-11-0/common/hashmap.h$22 * $Id : hashmap.h 30484 2008-01-14 19:01:08Z fingolfin$21 * $URL$ 22 * $Id$ 23 23 * 24 24 */ 25 25 … … 86 86 template <class Key, class Val, class HashFunc = Hash<Key>, class EqualFunc = EqualTo<Key> > 87 87 class HashMap { 88 88 private: 89 #if defined (PALMOS_MODE) 89 #if defined (PALMOS_MODE) || defined (__BEOS__) 90 90 public: 91 91 #endif 92 92 … … 116 116 int lookupAndCreateIfMissing(const Key &key); 117 117 void expand_array(uint newsize); 118 118 119 class ConstIterator; 120 119 121 /** 120 122 * Simple HashMap iterator implementation. 121 123 */ … … 135 137 136 138 Node *deref() const { 137 139 assert(_hashmap != 0); 140 assert(_idx < _arrsize); 138 141 Node *node = _hashmap->_arr[_idx]; 139 142 assert(node != 0); 140 143 return node; … … 172 175 * This is almost completely identical to the normal iterator class, only 173 176 * with some const keywords added here and there, plus a conversion 174 177 * operator which makes it possible to transparently convert iterators to 175 * const iterators. 178 * const iterators. 176 179 * It is sadly not really possible to reduce this code duplication using 177 180 * template, unless one is willing to accept various warnings on certain 178 181 * compilers. Note that many (most? all?) implementations of the standard