forked from mirrors/0ad
fixes/improvements made at work:
- fix lots of 64-bit warnings - round_up/down now templates - avoid warning with definition of byte swap functions; remove duplication of that in wsdl - codec_zlib.cpp: avoid domination warning - vfs/file_cache: VFS is now responsible for handling zero-length files (no longer considered an error; just returns zero pointer and size=0) - cpu: export all functions (thus obviating cpu_memcpy_thunk). this required renaming asm functions and adding thunk functions that call them - winit: fix segment merge statement, reinstate /include (otherwise init functions are stripped by linker) - wstartup: VC CRT init section definitions have changed in amd64 build; match their definition - wsysdep.cpp: more descriptive text for osError = 0 This was SVN commit r5899.
This commit is contained in:
@@ -24,7 +24,7 @@ static const ModuleInitState MODULE_UNINITIALIZED = 0u;
|
||||
|
||||
// (1..N = reference count)
|
||||
|
||||
static const ModuleInitState MODULE_ERROR = ~1u;
|
||||
static const ModuleInitState MODULE_ERROR = ~(uintptr_t)1u;
|
||||
|
||||
|
||||
bool ModuleShouldInitialize(volatile ModuleInitState* pInitState)
|
||||
|
||||
Reference in New Issue
Block a user