]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
added mem_bigendian variable
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Dec 2009 08:46:20 +0000 (08:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Dec 2009 08:46:20 +0000 (08:46 +0000)
commit775c4993063d7673903a2dfaebeacd1a9c71cbf7
tree6df3ef6bd055ef36bb98c1bf27ce68bc073b5be0
parent9c8131b3258d94055b316fcd162ea6b7a028c4a7
added mem_bigendian variable
made LittleLong/Short/Float and BigLong/Short/Float functions pass a
pointer to the variable to BuffBigLong/BuffLittleLong and friends to
avoid unaligned memory access crashes on some platforms even if a file
has unaligned data in it
added StoreBigLong function to help the netconn.c code
removed BYTE_ORDER compile-time detection

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9617 d7cf8633-e32d-0410-b094-e92efae38249
12 files changed:
common.c
common.h
host_cmd.c
model_alias.h
model_brush.c
netconn.c
snd_bsd.c
snd_ogg.c
snd_wav.c
sv_demo.c
zone.c
zone.h