summaryrefslogtreecommitdiff
path: root/zend
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-02-05 11:20:25 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-02-05 11:20:25 +0100
commitae07ef4cf606147c77b6ba472956e2793e251ba6 (patch)
treee09077fe8f2264446992494a5851e869cac0e66b /zend
parent877c2529e86686cc2005e7a523d061c955a4f468 (diff)
for 32bit systems there was a compile issue, hopefully this commit solves that (issue 167)
Diffstat (limited to 'zend')
-rw-r--r--zend/constantimpl.h5
-rw-r--r--zend/includes.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/zend/constantimpl.h b/zend/constantimpl.h
index 7320a8b..1fb1676 100644
--- a/zend/constantimpl.h
+++ b/zend/constantimpl.h
@@ -127,8 +127,13 @@ public:
break;
case IS_LONG:
+#ifdef PHPCPP_32BIT
+ // 32bit systems find this difficult
+ clss.property(_name, (int32_t)Z_LVAL(_constant.value), Php::Const);
+#else
// set a long constant
clss.property(_name, Z_LVAL(_constant.value), Php::Const);
+#endif
break;
case IS_DOUBLE:
diff --git a/zend/includes.h b/zend/includes.h
index 31d3963..97cacc9 100644
--- a/zend/includes.h
+++ b/zend/includes.h
@@ -47,6 +47,7 @@
* Include other files from this library
*/
#include "../include/noexcept.h"
+#include "../include/platform.h"
#include "../include/version.h"
#include "../include/inivalue.h"
#include "../include/ini.h"