#ifndef PHP_BBCODE_H #define PHP_BBCODE_H extern zend_module_entry bbcode_module_entry; #define phpext_bbcode_ptr &bbcode_module_entry #define PHP_BBCODE_NAME "BBCode" #define PHP_BBCODE_VERSION "2.0.0" #ifdef PHP_WIN32 # define PHP_BBCODE_API __declspec(dllexport) #elif defined(__GNUC__) && __GNUC__ >= 4 # define PHP_BBCODE_API __attribute__ ((visibility("default"))) #else # define PHP_BBCODE_API #endif #ifdef ZTS #include "TSRM.h" #endif /* Declare any global variables you may need between the BEGIN and END macros here: ZEND_BEGIN_MODULE_GLOBALS(bbcode) zend_long global_value; char *global_string; ZEND_END_MODULE_GLOBALS(bbcode) */ /* Always refer to the globals in your function as BBCODE_G(variable). You are encouraged to rename these macros something shorter, see examples in any other php module directory. */ #define BBCODE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(bbcode, v) #if defined(ZTS) && defined(COMPILE_DL_BBCODE) ZEND_TSRMLS_CACHE_EXTERN() #endif #endif /* PHP_BBCODE_H */