Jonathan Gray
d6bc68d632
workaround glibc ld.so bug #12561
...
from Jochen Leopold:
Fixed dclose problems (stuck in level 4)
* UNIQUE symbols in jk2gamex86.so don't allow to unload the library on map changes!
** so all global variables are not reseted -> this causes many bugs (stuck on start of level 4 for example)
* removed one "inline" attribute which fixes this bug
** there is just a GLIBCXX unique symbol left: readelf -Ws ./jk2gamex86.so | grep UNIQUE
2013-05-12 12:10:13 +10:00
Jonathan Gray
dfb45c84f6
make g_savegame.cpp build on amd64 without -fpermissive
2013-05-02 19:08:16 +10:00
Jonathan Gray
42dd32771a
set some possibly uninitialised vars to zero
2013-05-02 13:47:34 +10:00
Jonathan Gray
1a47ca7601
disable some noisy and mostly harmless warnings
2013-05-02 01:32:46 +10:00
Jonathan Gray
4074a53216
remove an uneeded extern decl that conflicts with an earlier one
2013-05-02 00:45:22 +10:00
Jonathan Gray
e95505989f
const fixes
2013-05-02 00:45:16 +10:00
Jonathan Gray
178544362e
avoid enum to int conversions
2013-05-01 23:47:33 +10:00
Jonathan Gray
88e6b70d0d
remove the use of 'typedef enum' without an indentifier
2013-05-01 23:47:33 +10:00
Jonathan Gray
00934e804e
remove surplus tokens after preprocessor directives
2013-05-01 23:47:32 +10:00
Jonathan Gray
8f7968cb9c
add sdl glimp/input from ioquake3 for SP
2013-04-30 15:02:18 +10:00
Jonathan Gray
721432a911
fix CBlockStream/icarus on amd64
2013-04-27 21:39:06 +10:00
Jonathan Gray
ac9a3c7748
use an int not a long for the version in the roff header
2013-04-24 01:24:31 +10:00
Jonathan Gray
76fb0c6d6f
chids in savegames are 32 bits on disk so don't use long
2013-04-24 01:24:31 +10:00
Jonathan Gray
5b9dda241c
initial round of amd64 fixes
2013-04-24 01:24:17 +10:00
Jonathan Gray
21a15843f6
fix some accesses beyond the end of arrays spotted via clang
2013-04-24 00:57:09 +10:00
Jonathan Gray
5ed4e4ca50
avoid overflowing buffer with GL_EXTENSIONS, from ioquake3
2013-04-24 00:54:54 +10:00
Jonathan Gray
d83a25cc1e
fix a return type
2013-04-24 00:42:00 +10:00
Jonathan Gray
ce9aaa8951
add a cmake file
2013-04-24 00:39:20 +10:00
Jonathan Gray
eba23de0e9
modify #elif statements so they will build if a symbol isn't defined
2013-04-24 00:36:59 +10:00
Jonathan Gray
8cbc7dc223
use libGL.so.1 on linux
2013-04-24 00:17:55 +10:00
Jonathan Gray
40a2f534d0
remove a wrong and unused prototype
2013-04-24 00:16:12 +10:00
Jonathan Gray
7fa9827a94
avoid implicit int types
2013-04-24 00:15:48 +10:00
Jonathan Gray
666685fba6
adjust to different scoping of variables declared in for loops
2013-04-24 00:13:50 +10:00
Jonathan Gray
ea4f7f0599
turn off c++ symbol mangling for GetGameAPI/vmMain/dllEntry
2013-04-24 00:11:01 +10:00
Jonathan Gray
c0f29e95a2
make the non IMMERSION case compile
2013-04-24 00:07:52 +10:00
Jonathan Gray
4e402640e7
adapt the q3a unix backend to c++ and JA
2013-04-24 00:07:39 +10:00
Jonathan Gray
0e3191e122
provide a gcc style alternative to the inline asm in zlib
2013-04-23 23:39:05 +10:00
Jonathan Gray
dca7904229
only declare the WGL pointers on windows
2013-04-23 23:27:00 +10:00
Jonathan Gray
f2f8459cb8
make the openal code compile without eax and enable it by default
2013-04-23 23:27:00 +10:00
Jonathan Gray
0833f632ad
add a CPUSTRING for amd64 linux
2013-04-23 23:27:00 +10:00
Jonathan Gray
eaad5df3d1
add an OpenBSD section to q_shared.h
2013-04-23 23:26:59 +10:00
Jonathan Gray
362f8c8612
rename variables named Status to status to prevent collision with X11
2013-04-23 23:26:59 +10:00
Jonathan Gray
e9536dccbd
use qWindow instead of Window to avoid a collision with X11 headers
2013-04-23 23:26:59 +10:00
Jonathan Gray
acc51ddf20
'or' is a c++ operator so rename variables to avoid it
2013-04-23 23:26:59 +10:00
Jonathan Gray
1cfc2bde7b
add a gcc style alignment alternative to msvc code
2013-04-23 23:26:58 +10:00
Jonathan Gray
6fc2559179
opt out of more masm assembly
2013-04-23 23:26:58 +10:00
Jonathan Gray
3aaacddbb2
USHORT -> unsigned short
2013-04-23 23:26:58 +10:00
Jonathan Gray
9e50610608
add static so multiple files can each have their own Pool()
2013-04-23 23:26:58 +10:00
Jonathan Gray
d13e72ab9d
avoid defining the game import var twice
2013-04-23 23:26:57 +10:00
Jonathan Gray
5335a8f693
remove an invalid and uneeded assignment
2013-04-23 23:26:57 +10:00
Jonathan Gray
e1fa7930f5
change iterator erasing so we don't need to overload the = operator
2013-04-23 23:26:57 +10:00
Jonathan Gray
df9e8b2224
leave the masm assembly to msvc
2013-04-23 23:26:57 +10:00
Jonathan Gray
bf669a384c
add a missing comma in a Ragl header
2013-04-23 23:26:57 +10:00
Jonathan Gray
e141c98002
add the typename keyword as needed to Ragl
2013-04-23 23:26:56 +10:00
Jonathan Gray
ef2d578693
avoid scoped enums which was until very recently a microsoft extension
2013-04-23 23:26:56 +10:00
Jonathan Gray
8096cb839d
_snprintf -> snprintf
2013-04-23 23:26:56 +10:00
Jonathan Gray
a72f2af77e
replace _isnan with Q_isnan
2013-04-23 23:26:56 +10:00
Jonathan Gray
3dff5cdf52
avoid including some bg_lib functions
2013-04-23 23:26:55 +10:00
Jonathan Gray
0c24fcdbfb
use QDECL instead of __cdecl
2013-04-23 23:26:49 +10:00
Jonathan Gray
118f3df648
rename syscall to qsyscall to avoid conflicting with system headers
2013-04-23 23:26:49 +10:00