summaryrefslogtreecommitdiff
path: root/phpcpp.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /phpcpp.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (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.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/phpcpp.h b/phpcpp.h
index 16c1690..b5385a7 100644
--- a/phpcpp.h
+++ b/phpcpp.h
@@ -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 */