Code fixes to support x64.
This commit is contained in:
@@ -881,9 +881,7 @@ void QDECL Com_sprintf( char *dest, int size, const char *fmt, ...) {
|
||||
if (len >= size) {
|
||||
Com_Printf ("Com_sprintf: overflow of %i in %i\n", len, size);
|
||||
#ifdef _DEBUG
|
||||
__asm {
|
||||
int 3;
|
||||
}
|
||||
__debugbreak();
|
||||
#endif
|
||||
}
|
||||
Q_strncpyz (dest, bigbuffer, size );
|
||||
|
||||
@@ -138,20 +138,7 @@ float FloatSwap (const float *f);
|
||||
#undef QDECL
|
||||
#define QDECL __cdecl
|
||||
|
||||
// buildstring will be incorporated into the version string
|
||||
#ifdef NDEBUG
|
||||
#ifdef _M_IX86
|
||||
#define CPUSTRING "win-x86"
|
||||
#elif defined _M_ALPHA
|
||||
#define CPUSTRING "win-AXP"
|
||||
#endif
|
||||
#else
|
||||
#ifdef _M_IX86
|
||||
#define CPUSTRING "win-x86-debug"
|
||||
#elif defined _M_ALPHA
|
||||
#define CPUSTRING "win-AXP-debug"
|
||||
#endif
|
||||
#endif
|
||||
#define CPUSTRING "generic"
|
||||
|
||||
#define ID_INLINE __inline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user