Attempt to fix mingw 64 bit compile error.

This commit is contained in:
Brecht Van Lommel
2011-05-24 11:01:39 +00:00
parent 4a989282d4
commit 3e62e518ec
5 changed files with 10 additions and 6 deletions

View File

@@ -27,6 +27,7 @@
set(INC set(INC
./intern ./intern
../container ../container
../guardedalloc
../moto/include ../moto/include
../memutil ../memutil
) )

View File

@@ -3,7 +3,7 @@ Import ('env')
sources = env.Glob('intern/*.cpp') sources = env.Glob('intern/*.cpp')
incs = 'intern ../container ../moto/include ../memutil' incs = 'intern ../container ../moto/include ../memutil ../guardedalloc'
env.BlenderLib ('bf_intern_bsp', sources, Split(incs), [], libtype=['core','player'], priority=[200,100] ) env.BlenderLib ('bf_intern_bsp', sources, Split(incs), [], libtype=['core','player'], priority=[200,100] )

View File

@@ -52,6 +52,8 @@
#include <functional> #include <functional>
#include "MEM_sys_types.h"
enum { enum {
empty_tag = 0x0, empty_tag = 0x0,
@@ -100,9 +102,9 @@ public:
#if defined(_WIN64) #if defined(_WIN64)
CTR_TaggedIndex( CTR_TaggedIndex(
const unsigned __int64 val const unsigned int64_t val
) : ) :
m_val ( ((unsigned __int64)val & index_mask) m_val ( ((unsigned int64_t)val & index_mask)
| ( (empty_tag << tag_shift) | ( (empty_tag << tag_shift)
& (~index_mask) ) ) { & (~index_mask) ) ) {
} }
@@ -140,8 +142,8 @@ public:
} }
#if defined(_WIN64) #if defined(_WIN64)
operator unsigned __int64 () const { operator unsigned int64_t () const {
return (unsigned __int64)(m_val & index_mask); return (unsigned int64_t)(m_val & index_mask);
} }
#endif #endif

View File

@@ -27,6 +27,7 @@
set(INC set(INC
. .
../container ../container
../guardedalloc
../memutil ../memutil
../moto/include ../moto/include
) )

View File

@@ -3,6 +3,6 @@ Import ('env')
sources = env.Glob('intern/*.cpp') sources = env.Glob('intern/*.cpp')
incs = '. ../moto/include ../container ../memutil' incs = '. ../moto/include ../container ../memutil ../guardedalloc'
env.BlenderLib ('bf_intern_decimate', sources, Split(incs) , [], libtype=['core', 'player'], priority = [200, 100] ) env.BlenderLib ('bf_intern_decimate', sources, Split(incs) , [], libtype=['core', 'player'], priority = [200, 100] )