Fixed model, 32/64bits detection on MacOS X

This commit is contained in:
Christophe Riccio 2011-12-18 20:05:02 +00:00
parent 7833ec3369
commit 1625a495a8
2 changed files with 4 additions and 12 deletions

View File

@ -393,18 +393,10 @@
/////////////////
// Build model //
#if(GLM_COMPILER & GLM_COMPILER_VC)
# if defined(_M_X64)
#if((defined(__WORDSIZE) && (__WORDSIZE == 64)) || defined(__arch64__) || defined(__LP64__) || defined(_M_X64) || defined(__ppc64__) || defined(__x86_64__))
# define GLM_MODEL GLM_MODEL_64
# else
# define GLM_MODEL GLM_MODEL_32
# endif//_M_X64
#elif(GLM_COMPILER & GLM_COMPILER_GCC)
# if(defined(__WORDSIZE) && (__WORDSIZE == 64)) || defined(__arch64__) || defined(__LP64__) || defined(__x86_64__)
# define GLM_MODEL GLM_MODEL_64
# else
# define GLM_MODEL GLM_MODEL_32
# endif//
#elif(defined(__i386__) || defined(__ppc__))
# define GLM_MODEL GLM_MODEL_32
#else
# define GLM_MODEL GLM_MODEL_32
#endif//

View File

@ -13,7 +13,7 @@
int test_compiler()
{
int Error = 0;
int Error(0);
switch(GLM_COMPILER)
{