]> granicus.if.org Git - php/commitdiff
Use standard boolean type as zend_bool typedef
authorGeorge Peter Banyard <girgias@php.net>
Mon, 8 Jun 2020 10:40:29 +0000 (12:40 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Tue, 9 Jun 2020 09:43:45 +0000 (11:43 +0200)
Closes GH-5624

Zend/zend_types.h

index 026177cf17ffaa8d3cd029a048c5231b69999aab..52997488736f834618ba2a3262e2a419298e8b41 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "zend_portability.h"
 #include "zend_long.h"
+#include <stdbool.h>
 
 #ifdef __SSE2__
 # include <mmintrin.h>
@@ -46,7 +47,7 @@
 # define ZEND_ENDIAN_LOHI_C_4(a, b, c, d)  a, b, c, d
 #endif
 
-typedef unsigned char zend_bool;
+typedef bool zend_bool;
 typedef unsigned char zend_uchar;
 
 typedef enum {