no need to skip one version :)
[m6w6/ext-pq] / php_pq.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: pq |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13
14 #ifndef PHP_PQ_H
15 #define PHP_PQ_H
16
17 #define PHP_PQ_VERSION "0.5.0dev"
18
19 int pq_module_number;
20 zend_module_entry pq_module_entry;
21 #define phpext_pq_ptr &pq_module_entry
22
23 #ifdef PHP_WIN32
24 # define PHP_PQ_API __declspec(dllexport)
25 #elif defined(__GNUC__) && __GNUC__ >= 4
26 # define PHP_PQ_API extern __attribute__ ((visibility("default")))
27 #else
28 # define PHP_PQ_API extern
29 #endif
30
31 #ifdef ZTS
32 # include "TSRM.h"
33 # define TSRMLS_DF(d) TSRMLS_D = (d)->ts
34 # define TSRMLS_CF(d) (d)->ts = TSRMLS_C
35 #else
36 # define TSRMLS_DF(d)
37 # define TSRMLS_CF(d)
38 #endif
39
40 #endif /* PHP_PQ_H */
41
42
43 /*
44 * Local variables:
45 * tab-width: 4
46 * c-basic-offset: 4
47 * End:
48 * vim600: noet sw=4 ts=4 fdm=marker
49 * vim<600: noet sw=4 ts=4
50 */