-
Notifications
You must be signed in to change notification settings - Fork 1
/
easyexcel.h
36 lines (24 loc) · 753 Bytes
/
easyexcel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
ZEND_BEGIN_MODULE_GLOBALS(easyexcel)
//globals
ZEND_END_MODULE_GLOBALS(easyexcel)
extern zend_module_entry easyexcel_module_entry;
#define phpext_easyexcel_ptr &easyexcel_module_entry
#define PHP_EASYEXCEL_VERSION "1.0.0" /* Replace with version number for your extension */
#ifdef PHP_WIN32
# define PHP_EASYEXCEL_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_EASYEXCEL_API __attribute__ ((visibility("default")))
#else
# define PHP_EASYEXCEL_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#define EASYEXCEL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(easyexcel, v)
#if defined(ZTS) && defined(COMPILE_DL_EASYEXCEL)
ZEND_TSRMLS_CACHE_EXTERN()
#endif