X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pq_misc.h;fp=src%2Fphp_pq_misc.h;h=9fc086a21c40add13532f0ea881bd869ac32ff8c;hp=afc017b162e8e398e8b7db970227fa42bb019d25;hb=cffcf8e687650733164a8baa53d04dea98ee6ca7;hpb=f75655ac7742fdd5c5e6968477d216b1b892475b 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"