-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp_libthai.h
More file actions
32 lines (24 loc) · 792 Bytes
/
Copy pathphp_libthai.h
File metadata and controls
32 lines (24 loc) · 792 Bytes
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
#ifndef PHP_LIBTHAI_H
#define PHP_LIBTHAI_H
extern zend_module_entry libthai_module_entry;
#define phpext_libthai_ptr &libthai_module_entry
#define PHP_LIBTHAI_VERSION "0.1.0"
#ifdef PHP_WIN32
# define PHP_LIBTHAI_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_LIBTHAI_API __attribute__ ((visibility("default")))
#else
# define PHP_LIBTHAI_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
/* Always refer to the globals in your function as LIBTHAI_G(variable).
You are encouraged to rename these macros something shorter, see
examples in any other php module directory.
*/
#define LIBTHAI_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(libthai, v)
#if defined(ZTS) && defined(COMPILE_DL_LIBTHAI)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
#endif /* PHP_LIBTHAI_H */