summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-05-05 10:48:10 +1200
committerOlly Betts <olly@survex.com>2021-05-05 10:58:07 +1200
commit228b04974dcc395b7da8ad9b5141fce6f1213c20 (patch)
tree2afd31b60dee431a5df82451e40f1cb1d8974e64 /Lib
parente59d34481d6e00abbd744874bffcc7d886f165d6 (diff)
downloadswig-228b04974dcc395b7da8ad9b5141fce6f1213c20.tar.gz
Clean up includes of PHP API headers
Eliminate redundant and unused includes. Only include the minimum headers needed before the PHP_MAJOR_VERSION check in case future PHP versions remove some of the headers we include.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/php/phprun.swg7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/php/phprun.swg b/Lib/php/phprun.swg
index 252c152cf..b0376314e 100644
--- a/Lib/php/phprun.swg
+++ b/Lib/php/phprun.swg
@@ -9,16 +9,15 @@
#ifdef __cplusplus
extern "C" {
#endif
-#include "zend.h"
-#include "zend_API.h"
-#include "zend_exceptions.h"
+
#include "php.h"
#if PHP_MAJOR_VERSION < 7
# error These bindings need PHP 7 or later - to generate PHP5 bindings use: SWIG < 4.0.0 and swig -php5
#endif
-#include "ext/standard/php_string.h"
+#include "zend_exceptions.h"
+
#include <stdlib.h> /* for abort(), used in generated code. */
#define SWIG_BOOL_CONSTANT(N, V) REGISTER_BOOL_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)