/** * visibility.h * * This file defines macros used to define whether a symbol * should be exported. It is only used for classes and * functions that are defined in the public API to reduce * the size of the symbol table, make linking and loading * of the PHP-CPP library faster and generate more * optimized code as a result. * * @copyright 2015 Copernica B.V. */ #if defined _WIN32 || defined __CYGWIN__ #ifdef BUILDING_PHPCPP #ifdef __GNUC__ #define PHPCPP_EXPORT __attribute__ ((dllexport)) #else #define PHPCPP_EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax. #endif #else #ifdef __GNUC__ #define DLL_EXPORT __attribute__ ((dllimport)) #else #define DLL_EXPORT __declspec(dllimport) // Note: actually gcc seems to also supports this syntax. #endif #endif #else #define PHPCPP_EXPORT __attribute__ ((visibility ("default"))) #endif