Skip to content

Commit b47bfd6

Browse files
MaxKellermannGirgias
authored andcommitted
ext/opcache: C++ compatibility
Just in case somebody includes those headers from C++ code. The same already exists in other opcache headers.
1 parent 45a128c commit b47bfd6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ext/opcache/zend_accelerator_debug.h

+4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
#define ACCEL_LOG_INFO 3
2929
#define ACCEL_LOG_DEBUG 4
3030

31+
BEGIN_EXTERN_C()
32+
3133
void zend_accel_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
3234
ZEND_NORETURN void zend_accel_error_noreturn(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
3335

36+
END_EXTERN_C()
37+
3438
#endif /* _ZEND_ACCELERATOR_DEBUG_H */

ext/opcache/zend_persist.h

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#ifndef ZEND_PERSIST_H
2323
#define ZEND_PERSIST_H
2424

25+
BEGIN_EXTERN_C()
26+
2527
uint32_t zend_accel_script_persist_calc(zend_persistent_script *script, int for_shm);
2628
zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, int for_shm);
2729

@@ -31,4 +33,6 @@ void zend_update_parent_ce(zend_class_entry *ce);
3133
void zend_persist_warnings_calc(uint32_t num_warnings, zend_error_info **warnings);
3234
zend_error_info **zend_persist_warnings(uint32_t num_warnings, zend_error_info **warnings);
3335

36+
END_EXTERN_C()
37+
3438
#endif /* ZEND_PERSIST_H */

0 commit comments

Comments
 (0)