diff --git a/ext/opcache/zend_accelerator_debug.h b/ext/opcache/zend_accelerator_debug.h index f4887a2c3fc..4a19da57b5e 100644 --- a/ext/opcache/zend_accelerator_debug.h +++ b/ext/opcache/zend_accelerator_debug.h @@ -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 */ diff --git a/ext/opcache/zend_persist.h b/ext/opcache/zend_persist.h index 4c7d6f2eeee..930430c9589 100644 --- a/ext/opcache/zend_persist.h +++ b/ext/opcache/zend_persist.h @@ -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 */