mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
part2: misc source/lib fixes/improvements
move all except user-specified config choices out of config.h and into appropriate headers CPU_IA32 -> ARCH_IA32 wsdl: disable use of ddraw (will soon be replaced by WMI) use shared_ptr without namespace qualifier (it's in tr1) debug_warn -> debug_assert(0) LIB_API to allow building as DLL smart pointers: reduce use of .get() cache_adt: use map instead of hash_map (avoids needing a hashCompare class). also remove spurious warning code_annotation.h: better cassert implementation move FPS measuring portion of timer.cpp into frequency_filter move include of memory headers into mmgr.h (to avoid errors, we must ensure they are included if mmgr is used) posix_filesystem.h: move definition of mkdir to wfilesystem stl: disable iterator checks in release mode wmi: fix COM init bug, use smart pointers wutil: add code to get DLL module handle (if compiled as such), add WinScopedLock timer: fix handling of raw ticks This was SVN commit r5517.
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#if CPU_IA32
|
||||
#if ARCH_IA32
|
||||
# include "lib/sysdep/ia32/ia32_asm.h" // ia32_asm_log2_of_pow2
|
||||
#endif
|
||||
|
||||
@@ -28,7 +28,7 @@ int log2_of_pow2(uint n)
|
||||
{
|
||||
int bit_index;
|
||||
|
||||
#if CPU_IA32
|
||||
#if ARCH_IA32
|
||||
bit_index = ia32_asm_log2_of_pow2(n);
|
||||
#else
|
||||
if(!is_pow2(n))
|
||||
|
||||
Reference in New Issue
Block a user