Add README.md for github
[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.6dev"
18
19 #ifdef PHP_WIN32
20 # define PHP_PQ_API __declspec(dllexport)
21 #elif defined(__GNUC__) && __GNUC__ >= 4
22 # define PHP_PQ_API extern __attribute__ ((visibility("default")))
23 #else
24 # define PHP_PQ_API extern
25 #endif
26
27 extern int pq_module_number;
28 extern zend_module_entry pq_module_entry;
29 #define phpext_pq_ptr &pq_module_entry
30
31
32 #ifdef ZTS
33 # include "TSRM.h"
34 # define TSRMLS_DF(d) TSRMLS_D = (d)->ts
35 # define TSRMLS_CF(d) (d)->ts = TSRMLS_C
36 #else
37 # define TSRMLS_DF(d)
38 # define TSRMLS_CF(d)
39 #endif
40
41 #endif /* PHP_PQ_H */
42
43
44 /*
45 * Local variables:
46 * tab-width: 4
47 * c-basic-offset: 4
48 * End:
49 * vim600: noet sw=4 ts=4 fdm=marker
50 * vim<600: noet sw=4 ts=4
51 */