Commit 97a3321d authored by David Partyka's avatar David Partyka
Browse files

ENH: Add try compiles for stdint.h inttypes.h and stdbool.h

parent 545f50f0
......@@ -122,6 +122,7 @@ FOREACH(file
"stddef.h"
"stdint.h"
"inttypes.h"
"stdbool.h"
)
CHECK_INCLUDE_FILE_CONCAT("${file}")
ENDFOREACH(file)
......@@ -142,6 +143,7 @@ FOREACH(type
"long"
"short"
"uchar"
"_Bool"
)
CHECK_TYPE_SIZE_EX("${type}")
ENDFOREACH(type)
......
......@@ -50,10 +50,10 @@
# define WORDS_BIGENDIAN 1
#endif
/* Define if you have <inttypes.h>
/* Define if you have <inttypes.h> */
#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
/* Define if you have <stdint.h>
/* Define if you have <stdint.h> */
#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@
/* Define if you don't have the <stdlib.h>. */
......@@ -74,6 +74,9 @@
/* Define if you have <unistd.h> and it should be used (not on Ultrix). */
#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
/* Define if stdbool.h conforms to C99. */
#cmakedefine HAVE_STDBOOL_H @HAVE_STDBOOL_H@
/* Define if you don't have the strerror function */
#cmakedefine NO_STRERROR @NO_STRERROR@
......@@ -86,6 +89,9 @@
/* Define to 1 if the system has the type uchar. */
#cmakedefine HAVE_UCHAR
/* Define to 1 if the system has the type `_Bool'. */
#cmakedefine HAVE__BOOL
/* Define if the system does not use IEEE floating point representation */
#cmakedefine NO_IEEE_FLOAT @NO_IEEE_FLOAT@
......
......@@ -63,7 +63,7 @@
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
# if ! HAVE__BOOL
# ifndef HAVE__BOOL
# ifdef __cplusplus
typedef bool _Bool;
# else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment