mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
Fixed model, 32/64bits detection on MacOS X
This commit is contained in:
parent
7833ec3369
commit
1625a495a8
@ -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
|
||||
#elif(defined(__i386__) || defined(__ppc__))
|
||||
# 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//
|
||||
#else
|
||||
# define GLM_MODEL GLM_MODEL_32
|
||||
#endif//
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
int test_compiler()
|
||||
{
|
||||
int Error = 0;
|
||||
int Error(0);
|
||||
|
||||
switch(GLM_COMPILER)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user