ext/opcache: C++ compatibility

Just in case somebody includes those headers from C++ code.  The same
already exists in other opcache headers.
This commit is contained in:
Max Kellermann 2022-03-17 19:28:34 +01:00 committed by George Peter Banyard
parent 45a128c9de
commit b47bfd698d
2 changed files with 8 additions and 0 deletions

View file

@ -28,7 +28,11 @@
#define ACCEL_LOG_INFO 3
#define ACCEL_LOG_DEBUG 4
BEGIN_EXTERN_C()
void zend_accel_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
ZEND_NORETURN void zend_accel_error_noreturn(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
END_EXTERN_C()
#endif /* _ZEND_ACCELERATOR_DEBUG_H */

View file

@ -22,6 +22,8 @@
#ifndef ZEND_PERSIST_H
#define ZEND_PERSIST_H
BEGIN_EXTERN_C()
uint32_t zend_accel_script_persist_calc(zend_persistent_script *script, int for_shm);
zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, int for_shm);
@ -31,4 +33,6 @@ void zend_update_parent_ce(zend_class_entry *ce);
void zend_persist_warnings_calc(uint32_t num_warnings, zend_error_info **warnings);
zend_error_info **zend_persist_warnings(uint32_t num_warnings, zend_error_info **warnings);
END_EXTERN_C()
#endif /* ZEND_PERSIST_H */