1
2
3 #ifndef PHP_EXTNAME_H
4 #define PHP_EXTNAME_H
5
6 extern zend_module_entry extname_module_entry;
7 #define phpext_extname_ptr &extname_module_entry
8
9 #define PHP_EXTNAME_VERSION "0.1.0"
10
11 #ifdef PHP_WIN32
12 # define PHP_EXTNAME_API __declspec(dllexport)
13 #elif defined(__GNUC__) && __GNUC__ >= 4
14 # define PHP_EXTNAME_API __attribute__ ((visibility("default")))
15 #else
16 # define PHP_EXTNAME_API
17 #endif
18
19 #ifdef ZTS
20 #include "TSRM.h"
21 #endif
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 #define EXTNAME_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(extname, v)
38
39 #if defined(ZTS) && defined(COMPILE_DL_EXTNAME)
40 ZEND_TSRMLS_CACHE_EXTERN()
41 #endif
42
43 #endif
44
45