1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | http://www.php.net/license/3_01.txt                                  |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Author: Israel Ekpo <iekpo@php.net>                                  |
14    +----------------------------------------------------------------------+
15 */
16 
17 /**
18  * Declaring Macro for function attributes
19  *
20  * This is for functions on GNU systems and Win32 systems
21  *
22  * On Win32 systems __declspec(dllexport) adds the export directive to the
23  * object file so you do not need to use a .def file
24  *
25  * Using __declspec(dllexport) in addition to using a .def file should
26  * not cause build errors.
27  */
28 #ifndef PHP_SOLR_API_H
29 #define PHP_SOLR_API_H
30 #ifdef PHP_WIN32
31 #define PHP_SOLR_API __declspec(dllexport)
32 #elif defined(__GNUC__) && __GNUC__ >= 4
33 #define PHP_SOLR_API __attribute__ ((visibility("default")))
34 #else
35 #define PHP_SOLR_API
36 #endif
37 #endif /* PHP_SOLR_API_H */
38 
39 /*
40  * Local variables:
41  * tab-width: 4
42  * c-basic-offset: 4
43  * indent-tabs-mode: t
44  * End:
45  * vim600: fdm=marker
46  * vim: noet sw=4 ts=4
47  */
48