ext recode: stdbool.h not found
| From: | Jade Nicoletti | Date: | Mon, 05 Jun 2000 11:14:24 +0000 |
| Subject: | ext recode: stdbool.h not found | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20238@lists.php.net to get a copy of this message | ||
Hi
I don't have stdbool.h, may someone please commit the patch?
-Jade.
--
===============================================================================
Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
Geschäftsleitung Postfach 2519 Fax 01 240 4775
System-Administration 8021 Zürich
============================================[ Weitere Infos: http://nns.ch/ ]==
--- config.m4~ Sun Mar 26 21:47:25 2000 +++ config.m4 Mon Jun 5 12:31:20 2000 @@ -56,6 +56,7 @@ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_LIBRECODE, 1, [Whether we have librecode 3.5 or higher]) + AC_CHECK_HEADERS(stdbool.h) PHP_EXTENSION(recode) else AC_MSG_RESULT(no) --- php_recode.h~ Sat Mar 11 23:05:41 2000 +++ php_recode.h Mon Jun 5 12:34:27 2000 @@ -45,7 +45,11 @@ */ #define HAVE_BROKEN_RECODE -#include <stdbool.h> +#ifdef HAVE_STDBOOL_H +# include <stdbool.h> +#else + typedef enum {false = 0, true = 1} bool; +#endif #include <sys/types.h> #include <stdio.h> #include <recode.h>
--- config.m4~ Sun Mar 26 21:47:25 2000 +++ config.m4 Mon Jun 5 12:31:20 2000 @@ -56,6 +56,7 @@ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_LIBRECODE, 1, [Whether we have librecode 3.5 or higher]) + AC_CHECK_HEADERS(stdbool.h) PHP_EXTENSION(recode) else AC_MSG_RESULT(no) --- php_recode.h~ Sat Mar 11 23:05:41 2000 +++ php_recode.h Mon Jun 5 12:34:27 2000 @@ -45,7 +45,11 @@ */ #define HAVE_BROKEN_RECODE -#include <stdbool.h> +#ifdef HAVE_STDBOOL_H +# include <stdbool.h> +#else + typedef enum {false = 0, true = 1} bool; +#endif #include <sys/types.h> #include <stdio.h> #include <recode.h>