X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pq_misc.h;h=9fc086a21c40add13532f0ea881bd869ac32ff8c;hp=afc017b162e8e398e8b7db970227fa42bb019d25;hb=d3fbce1b02b41d7ee1f3d0b60dc8df411aae7d79;hpb=74657a40eda33c53f79fb132b64fe1a045232fd9 diff --git a/src/php_pq_misc.h b/src/php_pq_misc.h index afc017b..9fc086a 100644 --- a/src/php_pq_misc.h +++ b/src/php_pq_misc.h @@ -16,7 +16,14 @@ #include -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"