Skip to content

Commit 3ce2089

Browse files
committed
Define CHAR_BITS
1 parent 690ba41 commit 3ce2089

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Zend/zend_portability.h

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
#include <stdarg.h>
6161
#include <stddef.h>
62+
#include <stdint.h>
6263

6364
#ifdef HAVE_DLFCN_H
6465
# include <dlfcn.h>
@@ -870,6 +871,10 @@ static zend_always_inline uint64_t ZEND_BYTES_SWAP64(uint64_t u)
870871
# define ZEND_OPCACHE_SHM_REATTACHMENT 1
871872
#endif
872873

874+
#ifndef CHAR_BITS
875+
# define CHAR_BITS 8
876+
#endif
877+
873878
#ifndef UINTPTR_WIDTH
874879
# define UINTPTR_WIDTH (CHAR_BITS * sizeof(uintptr_t))
875880
#endif

0 commit comments

Comments
 (0)