include(CheckTypeSize)
check_type_size( ssize_t SSIZE_T )
-check_type_size( intptr_t INTPTR_T )
# Library checks
set( HAVE_ANN ${ANN_FOUND} )
// Types
#cmakedefine HAVE_SSIZE_T
-#cmakedefine HAVE_INTPTR_T
// Typedefs for missing types
#ifndef HAVE_SSIZE_T
],[AC_MSG_RESULT(no)
])
-# -----------------------------------
-
-AC_MSG_CHECKING(if intptr_t is declared)
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
- #include <stdint.h>
- ]], [[intptr_t abc;
- ]])],[AC_MSG_RESULT(yes)
- AC_DEFINE_UNQUOTED(HAVE_INTPTR_T,1,Define if intptr_t is declared)
- ],[AC_MSG_RESULT(no)
- ])
-
# -----------------------------------------------------------------------
# This is a historical artifact ... there are no other choices these days
#define BITS_PER_BYTE 8
static void *int2ptr(Sflong_t i) {
-#ifdef HAVE_INTPTR_T
return (void*)(intptr_t)i;
-#else
- return (void*)i;
-#endif
}
static Sflong_t ptr2int(const void *p) {
-#ifdef HAVE_INTPTR_T
return (Sflong_t)(intptr_t)p;
-#else
- return (Sflong_t)p;
-#endif
}
static int iofread(void *chan, char *buf, int bufsize)
/* Define to 1 if you have the <IL/il.h> header file. */
/* #undef HAVE_IL_IL_H */
-/* Define if intptr_t is declared */
-#define HAVE_INTPTR_T 1
-
/* Define if you have the lasi library */
/* #undef HAVE_LASI */