1 
2 #ifndef PHP_VIPS_H
3 #define PHP_VIPS_H
4 
5 extern zend_module_entry vips_module_entry;
6 #define phpext_vips_ptr &vips_module_entry
7 
8 #define PHP_VIPS_VERSION "1.0.10"
9 
10 #ifdef PHP_WIN32
11 #	define PHP_VIPS_API __declspec(dllexport)
12 #elif defined(__GNUC__) && __GNUC__ >= 4
13 #	define PHP_VIPS_API __attribute__ ((visibility("default")))
14 #else
15 #	define PHP_VIPS_API
16 #endif
17 
18 #ifdef ZTS
19 #include "TSRM.h"
20 #endif
21 
22 /*
23   	Declare any global variables you may need between the BEGIN
24 	and END macros here:
25 
26 ZEND_BEGIN_MODULE_GLOBALS(vips)
27 	zend_long  global_value;
28 	char *global_string;
29 ZEND_END_MODULE_GLOBALS(vips)
30 */
31 
32 /* Always refer to the globals in your function as VIPS_G(variable).
33    You are encouraged to rename these macros something shorter, see
34    examples in any other php module directory.
35 */
36 #define VIPS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(vips, v)
37 
38 #if defined(ZTS) && defined(COMPILE_DL_VIPS)
39 ZEND_TSRMLS_CACHE_EXTERN()
40 #endif
41 
42 #endif	/* PHP_VIPS_H */
43 
44