projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
STATUS => ZEND_RESULT_CODE
[m6w6/ext-pq]
/
src
/
php_pq_misc.h
diff --git
a/src/php_pq_misc.h
b/src/php_pq_misc.h
index afc017b162e8e398e8b7db970227fa42bb019d25..9fc086a21c40add13532f0ea881bd869ac32ff8c 100644
(file)
--- a/
src/php_pq_misc.h
+++ b/
src/php_pq_misc.h
@@
-16,7
+16,14
@@
#include <libpq-fe.h>
-typedef int STATUS; /* SUCCESS/FAILURE */
+#if PHP_VERSION_ID < 50500
+#undef SUCCESS
+#undef FAILURE
+typedef enum {
+ SUCCESS = 0,
+ FAILURE = -1
+} ZEND_RESULT_CODE;
+#endif
#include "php_pqres.h"