This commit is contained in:
Ward Fisher 2013-04-02 21:32:53 +00:00
parent 23cdaec7d7
commit f63526e89a
3 changed files with 11 additions and 4 deletions

View File

@ -643,6 +643,7 @@ CHECK_INCLUDE_FILE("fcntl.h" HAVE_FCNTL_H)
CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
CHECK_INCLUDE_FILE("pstdint.h" HAVE_PSTDINT_H)
CHECK_INCLUDE_FILE("endian.h" HAVE_ENDIAN_H)
CHECK_INCLUDE_FILE("BaseTsd.h" HAVE_BASETSD_H)
# Type checks
CHECK_TYPE_SIZE("double" SIZEOF_DOUBLE)

View File

@ -185,6 +185,9 @@
/* Define to 1 if you have the <malloc.h> header file. */
#cmakedefine HAVE_MALLOC_H @HAVE_MALLOC_H@
/* Define to 1 if you have the BaseTsd.h header file. */
#cmakedefine HAVE_BASETSD_H @HAVE_BASETSD_H@
/* The size of `double` as computed by sizeof. */
#cmakedefine SIZEOF_DOUBLE @SIZEOF_DOUBLE@
/* The size of `float` as computed by sizeof. */

View File

@ -22,12 +22,15 @@ defined.
extern char* strdup(const char*);
#endif
#ifndef SIZEOF_SSIZE_T
#undef ssize_t
#define ssize_t int
#if HAVE_BASETSD_H
#include <BaseTsd.h>
#endif
//#ifndef SIZEOF_SSIZE_T
//#undef ssize_t
//#define ssize_t int
//#endif
/* handle null arguments */