Define universal answer of SIZEOF_VOIDP for 32/64-bit architectures.

This commit makes SDL_config.h universal, so it can be used with mixed
32 and 64 enviroment simultaneously.
This commit is contained in:
Azamat H. Hackimov 2013-06-05 12:28:53 +06:00
parent db4086463f
commit 8e19a2982d
2 changed files with 12 additions and 1 deletions

View file

@ -43,6 +43,11 @@
/* C datatypes */
#undef SIZEOF_VOIDP
#ifdef __LP64__
#define SIZEOF_VOID_P 8
#else
#define SIZEOF_VOID_P 4
#endif
#undef HAVE_GCC_ATOMICS
#undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET
#undef HAVE_PTHREAD_SPINLOCK