diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2015-03-26 16:00:10 +0100 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2015-03-26 16:00:10 +0100 |
commit | 7a928e2b19bddf152fd838469cc50805d4132401 (patch) | |
tree | 0a6657f4b94c27556b2f218e407f752018540d3b /phpcpp.h | |
parent | ae4fa5f871d937773e9facde87a32784e715e3ae (diff) |
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'phpcpp.h')
-rw-r--r-- | phpcpp.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -27,6 +27,7 @@ /** * Include all headers files that are related to this library */ +#include <phpcpp/visibility.h> #include <phpcpp/noexcept.h> #include <phpcpp/platform.h> #include <phpcpp/version.h> @@ -41,7 +42,6 @@ #include <phpcpp/valueiterator.h> #include <phpcpp/array.h> #include <phpcpp/object.h> -#include <phpcpp/hiddenpointer.h> #include <phpcpp/globals.h> #include <phpcpp/argument.h> #include <phpcpp/byval.h> @@ -69,13 +69,4 @@ #include <phpcpp/file.h> #include <phpcpp/function.h> -/** - * Macro to export a function - */ -#if defined(__GNUC__) && __GNUC__ >= 4 -# define PHPCPP_EXPORT __attribute__ ((visibility("default"))) -#else -# define PHPCPP_EXPORT -#endif - #endif /* phpcpp.h */ |