Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ext/opcache/ZendAccelerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@

#ifndef ZEND_EXT_API
# ifdef ZEND_WIN32
# define ZEND_EXT_API __declspec(dllexport)
# ifdef ZEND_EXT_EXPORTS
# define ZEND_EXT_API __declspec(dllexport)
# else
# define ZEND_EXT_API __declspec(dllimport)
# endif
# elif defined(__GNUC__) && __GNUC__ >= 4
# define ZEND_EXT_API __attribute__ ((visibility("default")))
# else
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if (PHP_OPCACHE != "no") {
}
}

ADD_FLAG('CFLAGS_OPCACHE', "/I " + configure_module_dirname);
ADD_FLAG('CFLAGS_OPCACHE', "/I " + configure_module_dirname + " /D ZEND_EXT_EXPORTS");

}

Loading