C89 compatibility.
This changes the libev constants to be the corresponding negative values. Without this the header file is not valid ISO C 89. This fix makes the uv header compile fine in a simple C 89 program.
This commit is contained in:
parent
341ecab2ef
commit
c946697e7c
@ -197,7 +197,7 @@ struct ev_loop;
|
||||
|
||||
/* eventmask, revents, events... */
|
||||
enum {
|
||||
EV_UNDEF = 0xFFFFFFFF, /* guaranteed to be invalid */
|
||||
EV_UNDEF = -1, /* guaranteed to be invalid */
|
||||
EV_NONE = 0x00, /* no events */
|
||||
EV_READ = 0x01, /* ev_io detected read will not block */
|
||||
EV_WRITE = 0x02, /* ev_io detected write will not block */
|
||||
@ -219,7 +219,7 @@ enum {
|
||||
EV_CLEANUP = 0x00040000, /* event loop resumed in child */
|
||||
EV_ASYNC = 0x00080000, /* async intra-loop signal */
|
||||
EV_CUSTOM = 0x01000000, /* for use by user code */
|
||||
EV_ERROR = 0x80000000 /* sent when an error occurs */
|
||||
EV_ERROR = -2147483648 /* sent when an error occurs */
|
||||
};
|
||||
|
||||
/* can be used to add custom fields to all watchers, while losing binary compatibility */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user