include/SDL_config.h.cmake
changeset 7414 bc9a193c993d
parent 7367 d6eabafa8776
child 7667 be1cc6f55840
     1.1 --- a/include/SDL_config.h.cmake	Thu Jul 11 23:05:02 2013 -0700
     1.2 +++ b/include/SDL_config.h.cmake	Wed Jun 05 12:28:53 2013 +0600
     1.3 @@ -37,7 +37,13 @@
     1.4  #cmakedefine volatile @HAVE_VOLATILE@
     1.5  
     1.6  /* C datatypes */
     1.7 -#cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
     1.8 +/* Define SIZEOF_VOIDP for 64/32 architectures */
     1.9 +#ifdef __LP64__
    1.10 +#define SIZEOF_VOIDP 8
    1.11 +#else
    1.12 +#define SIZEOF_VOIDP 4
    1.13 +#endif
    1.14 +
    1.15  #cmakedefine HAVE_GCC_ATOMICS @HAVE_GCC_ATOMICS@
    1.16  #cmakedefine HAVE_GCC_SYNC_LOCK_TEST_AND_SET @HAVE_GCC_SYNC_LOCK_TEST_AND_SET@
    1.17  #cmakedefine HAVE_PTHREAD_SPINLOCK @HAVE_PTHREAD_SPINLOCK@