fi
AC_DEFINE(HAVE_LIBRECODE, 1, [Whether we have librecode 3.5 or higher])
+
+ AC_CHECK_HEADERS(stdbool.h)
+
PHP_EXTENSION(recode,$ext_shared)
fi
*/
#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>
#include "ext/standard/php_string.h"
#include "zend_list.h"
+
#ifdef HAVE_BROKEN_RECODE
extern char *program_name;
char *program_name = "php";
char *r = NULL;
pval **str;
pval **req;
- int success;
+ bool success;
ReSLS_FETCH();
if (ZEND_NUM_ARGS() != 2