Skip to content

Commit 3df713b

Browse files
committed
Add PHP_REDIS_API definition to common.h to replace PHPAPI used in the source code
1 parent 728917e commit 3df713b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#ifndef REDIS_COMMON_H
55
#define REDIS_COMMON_H
66

7+
#ifdef PHP_WIN32
8+
#define PHP_REDIS_API __declspec(dllexport)
9+
#else
10+
#define PHP_REDIS_API
11+
#endif
12+
713
#define redis_sock_name "Redis Socket Buffer"
814
#define REDIS_SOCK_STATUS_FAILED 0
915
#define REDIS_SOCK_STATUS_DISCONNECTED 1

0 commit comments

Comments
 (0)