Skip to content

Commit 6041303

Browse files
committed
[skip ci] Name unnamed enums in poll API
1 parent 0a81330 commit 6041303

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main/php_poll.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define PHP_POLL_FLAG_RAW_EVENTS 0x02
3939

4040
/* Poll backend types. Keep in sync with io_poll.stub.php! */
41-
typedef enum {
41+
typedef enum php_poll_backend_type {
4242
PHP_POLL_BACKEND_AUTO = -1,
4343
PHP_POLL_BACKEND_POLL = 0,
4444
PHP_POLL_BACKEND_EPOLL,
@@ -62,7 +62,7 @@ typedef enum {
6262
#define PHP_POLL_ERROR_CODE_NOSUPPORT 11
6363

6464
/* Error codes */
65-
typedef enum {
65+
typedef enum php_poll_error {
6666
PHP_POLL_ERR_NONE = PHP_POLL_ERROR_CODE_NONE, /* No error */
6767
PHP_POLL_ERR_SYSTEM = PHP_POLL_ERROR_CODE_SYSTEM, /* Generic system error */
6868
PHP_POLL_ERR_NOMEM = PHP_POLL_ERROR_CODE_NOMEM, /* Out of memory (ENOMEM) */

0 commit comments

Comments
 (0)