update travis
[m6w6/ext-json_post] / php_json_post.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: json_post |
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) 2015, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_JSON_POST_H
14 #define PHP_JSON_POST_H
15
16 extern zend_module_entry json_post_module_entry;
17 #define phpext_json_post_ptr &json_post_module_entry
18
19 #define PHP_JSON_POST_VERSION "1.0.1"
20
21 #ifdef PHP_WIN32
22 # define PHP_JSON_POST_API __declspec(dllexport)
23 #elif defined(__GNUC__) && __GNUC__ >= 4
24 # define PHP_JSON_POST_API extern __attribute__ ((visibility("default")))
25 #else
26 # define PHP_JSON_POST_API extern
27 #endif
28
29 #ifdef ZTS
30 # include "TSRM.h"
31 #endif
32
33 ZEND_BEGIN_MODULE_GLOBALS(json_post)
34 long flags;
35 ZEND_END_MODULE_GLOBALS(json_post)
36
37 ZEND_EXTERN_MODULE_GLOBALS(json_post);
38
39 #ifdef ZTS
40 # define JSON_POST_G(v) TSRMG(json_post_globals_id, zend_json_post_globals *, v)
41 #else
42 # define JSON_POST_G(v) (json_post_globals.v)
43 #endif
44
45 #endif /* PHP_JSON_POST_H */
46
47 /*
48 * Local variables:
49 * tab-width: 4
50 * c-basic-offset: 4
51 * End:
52 * vim600: noet sw=4 ts=4 fdm=marker
53 * vim<600: noet sw=4 ts=4
54 */