Skip to content

Commit bbf9b6d

Browse files
committed
- #50854, fix build on non windows
1 parent b7aee13 commit bbf9b6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main/php.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,9 @@ PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1,
309309
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 4, PHP_ATTR_FMT_OFFSET + 5);
310310
PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...)
311311
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 5, PHP_ATTR_FMT_OFFSET + 6);
312+
#ifdef PHP_WIN32
312313
PHPAPI void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2 TSRMLS_DC);
313-
314+
#endif
314315
END_EXTERN_C()
315316

316317
#define php_error_docref php_error_docref0

0 commit comments

Comments
 (0)