* fix build on PHP 5.3
[m6w6/ext-ircclient] / php_ircclient.h
1 /*
2 +----------------------------------------------------------------------+
3 | PHP Version 5 |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1997-2011 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Author: |
16 +----------------------------------------------------------------------+
17 */
18
19 /* $Id: header 310447 2011-04-23 21:14:10Z bjori $ */
20
21 #ifndef PHP_IRCCLIENT_H
22 #define PHP_IRCCLIENT_H
23
24 extern zend_module_entry ircclient_module_entry;
25 #define phpext_ircclient_ptr &ircclient_module_entry
26
27 #ifdef PHP_WIN32
28 # define PHP_IRCCLIENT_API __declspec(dllexport)
29 #elif defined(__GNUC__) && __GNUC__ >= 4
30 # define PHP_IRCCLIENT_API __attribute__ ((visibility("default")))
31 #else
32 # define PHP_IRCCLIENT_API
33 #endif
34
35 #ifdef ZTS
36 #include "TSRM.h"
37 #endif
38
39 PHP_MINIT_FUNCTION(ircclient);
40 PHP_MSHUTDOWN_FUNCTION(ircclient);
41 PHP_RINIT_FUNCTION(ircclient);
42 PHP_RSHUTDOWN_FUNCTION(ircclient);
43 PHP_MINFO_FUNCTION(ircclient);
44
45
46
47
48 #ifdef ZTS
49 #define IRCCLIENT_G(v) TSRMG(ircclient_globals_id, zend_ircclient_globals *, v)
50 #else
51 #define IRCCLIENT_G(v) (ircclient_globals.v)
52 #endif
53
54 #endif
55
56
57 /*
58 * Local variables:
59 * tab-width: 4
60 * c-basic-offset: 4
61 * End:
62 * vim600: noet sw=4 ts=4 fdm=marker
63 * vim<600: noet sw=4 ts=4
64 */