1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-26 20:04:44 +01:00
ext-pq/php_pq.h

51 lines
1.4 KiB
C
Raw Normal View History

2013-02-20 22:43:42 +01:00
/*
+--------------------------------------------------------------------+
| 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 <mike@php.net> |
+--------------------------------------------------------------------+
*/
#ifndef PHP_PQ_H
#define PHP_PQ_H
2014-10-23 09:53:57 +02:00
#define PHP_PQ_VERSION "0.5.3"
2013-02-20 22:43:42 +01:00
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
2014-04-04 15:48:20 +02:00
# define PHP_PQ_API extern __attribute__ ((visibility("default")))
2013-02-20 22:43:42 +01:00
#else
2014-04-04 15:48:20 +02:00
# define PHP_PQ_API extern
2013-02-20 22:43:42 +01:00
#endif
#ifdef ZTS
# include "TSRM.h"
2013-03-22 15:06:38 +01:00
# define TSRMLS_DF(d) TSRMLS_D = (d)->ts
# define TSRMLS_CF(d) (d)->ts = TSRMLS_C
2013-02-20 22:43:42 +01:00
#else
2013-03-22 15:06:38 +01:00
# define TSRMLS_DF(d)
# define TSRMLS_CF(d)
2013-02-20 22:43:42 +01:00
#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
*/