blob: 4ce967e7a8e977d631db5e739e41ea73a12193f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From 2ba4d96379a826050d91b039775e9d1e148d5ef2 Mon Sep 17 00:00:00 2001
From: Joel Wurtz <jwurtz@jolicode.com>
Date: Fri, 22 Dec 2017 21:56:25 +0100
Subject: [PATCH] Remove dependency on PHP version for GC_ADDREF macro
---
php_uv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/php_uv.c b/php_uv.c
index 564722c..12052b7 100644
--- a/php_uv.c
+++ b/php_uv.c
@@ -44,7 +44,7 @@ ZEND_TSRMLS_CACHE_DEFINE()
ZEND_DECLARE_MODULE_GLOBALS(uv);
-#if PHP_VERSION_ID < 70300
+#ifndef GC_ADDREF
#define GC_ADDREF(ref) ++GC_REFCOUNT(ref)
#endif
|