Re: ext recode: stdbool.h not found
| From: | Jade Nicoletti | Date: | Tue, 06 Jun 2000 12:15:57 +0000 |
| Subject: | Re: ext recode: stdbool.h not found | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20313@lists.php.net to get a copy of this message | ||
Quoting from recode's info:
The `<recode.h>' header file uses the Boolean type setup by the
system header file `<stdbool.h>'. But this header file is still fairly
new in C standards, and likely does not exist everywhere. If you
system does not offer this system header file yet, the proper
compilation of the `<recode.h>' file could be guaranteed through the
replacement of the inclusion line by:
typedef enum {false = 0, true = 1} bool;
On Mon, Jun 05, 2000 at 01:14:24PM +0200, Jade Nicoletti wrote:
> 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>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
===============================================================================
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/ ]==