Skip to content

Commit

Permalink
fixing issue with C/C++ linkage
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant committed Jun 10, 2024
1 parent 6b60de3 commit 6ca7022
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/php_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ extern "C"
#endif


#include <ext/spl/spl_exceptions.h>
#include <ext/spl/spl_iterators.h>

#include "api.h"
#include "DateTime/Date.h"
#include "RetryPolicy/RetryPolicy.h"
#include "SSLOptions/SSLOptions.h"

#define PHP_DRIVER_NAMESPACE "Cassandra"

#define PHP_DRIVER_NAMESPACE_ZEND_ARG_OBJ_INFO(pass_by_ref, name, classname, allow_null) \
Expand Down
1 change: 1 addition & 0 deletions src/DateTime/Duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <util/types.h>

BEGIN_EXTERN_C()
#include <spl/spl_exceptions.h>

zend_class_entry *php_driver_duration_ce = nullptr;

Expand Down
2 changes: 2 additions & 0 deletions src/Exception/DomainException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
* limitations under the License.
*/


#include "php_driver.h"
#include "php_driver_types.h"

BEGIN_EXTERN_C()
#include <spl/spl_exceptions.h>

zend_class_entry *php_driver_domain_exception_ce = NULL;

Expand Down
2 changes: 2 additions & 0 deletions src/Exception/InvalidArgumentException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
* limitations under the License.
*/


#include "php_driver.h"
#include "php_driver_types.h"
BEGIN_EXTERN_C()
#include <spl/spl_exceptions.h>

zend_class_entry *php_driver_invalid_argument_exception_ce = NULL;

Expand Down
3 changes: 3 additions & 0 deletions src/Exception/LogicException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
* limitations under the License.
*/


#include "php_driver.h"
#include "php_driver_types.h"
BEGIN_EXTERN_C()
#include <spl/spl_exceptions.h>

zend_class_entry *php_driver_logic_exception_ce = NULL;

static zend_function_entry LogicException_methods[] = {
Expand Down
4 changes: 4 additions & 0 deletions src/Exception/RuntimeException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
* limitations under the License.
*/


#include "php_driver.h"
#include "php_driver_types.h"
BEGIN_EXTERN_C()
#include <spl/spl_exceptions.h>


zend_class_entry *php_driver_runtime_exception_ce = NULL;

static zend_function_entry RuntimeException_methods[] = {
Expand Down

0 comments on commit 6ca7022

Please sign in to comment.