X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=php_pq.h;h=fc67bf0d132ecaf31c817327b825b6805afdcaf2;hp=6b88c69688cd5e3f8c33099a69d6176a043bf749;hb=630017bcb9957e50967f5528b947d33746c07a4f;hpb=60f1c75340bc24e1d2e11a71906b683c76b6293f diff --git a/php_pq.h b/php_pq.h deleted file mode 120000 index 6b88c69..0000000 --- a/php_pq.h +++ /dev/null @@ -1 +0,0 @@ -src/php_pq.h \ No newline at end of file diff --git a/php_pq.h b/php_pq.h new file mode 100644 index 0000000..fc67bf0 --- /dev/null +++ b/php_pq.h @@ -0,0 +1,58 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: pq | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2013, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + + +#ifndef PHP_PQ_H +#define PHP_PQ_H + +#define PHP_PQ_EXT_VERSION "1.0.0dev" + +int pq_module_number; +zend_module_entry pq_module_entry; +#define phpext_pq_ptr &pq_module_entry + +#ifdef PHP_WIN32 +# define PHP_PQ_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_PQ_API __attribute__ ((visibility("default"))) +#else +# define PHP_PQ_API +#endif + +#ifdef ZTS +# include "TSRM.h" +#endif + +/* +ZEND_BEGIN_MODULE_GLOBALS(pq) + long global_value; + char *global_string; +ZEND_END_MODULE_GLOBALS(pq) + +#ifdef ZTS +#define PQ_G(v) TSRMG(pq_globals_id, zend_pq_globals *, v) +#else +#define PQ_G(v) (pq_globals.v) +#endif +*/ + +#endif /* PHP_PQ_H */ + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */