diff --git a/php_wxwork_finance_sdk.h b/php_wxwork_finance_sdk.h index 0ae7714..b5dbed3 100644 --- a/php_wxwork_finance_sdk.h +++ b/php_wxwork_finance_sdk.h @@ -73,6 +73,9 @@ static inline void trace(const char *file, int line, const char* function, const va_end(args); } +#define WXWORK_SDK_G_NAME "_wecomSDK" +#define WXWORK_SDK_G_NAME_SIZE sizeof(WXWORK_SDK_G_NAME) - 1 + #endif /* PHP_WXWORK_FINANCE_SDK_H */ /* diff --git a/wxwork_finance_sdk.c b/wxwork_finance_sdk.c index ee0ca74..79a6f57 100644 --- a/wxwork_finance_sdk.c +++ b/wxwork_finance_sdk.c @@ -26,8 +26,6 @@ #include "php_ini.h" #include "ext/standard/info.h" #include "php_wxwork_finance_sdk.h" -#define WXWORK_SDK_G_NAME "_wecomSDK" -#define WXWORK_SDK_G_NAME_SIZE sizeof(WXWORK_SDK_G_NAME) - 1 /* If you declare any globals in php_wxwork_finance_sdk.h uncomment this: ZEND_DECLARE_MODULE_GLOBALS(wxwork_finance_sdk) */