mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-23 13:20:10 +00:00
fixes for winblows
This commit is contained in:
parent
587d9a26e5
commit
cf01657cc2
@ -25,11 +25,11 @@
|
||||
#define laikaM_newVector(type, name) \
|
||||
type *name; \
|
||||
int name##_COUNT; \
|
||||
int name##_CAP;
|
||||
int name##_CAP
|
||||
#define laikaM_initVector(name, startCap) \
|
||||
name = NULL; \
|
||||
name##_COUNT = 0; \
|
||||
name##_CAP = startCap;
|
||||
name##_CAP = startCap
|
||||
|
||||
#define laikaM_growVector(type, name, needed) \
|
||||
if (name##_COUNT + needed >= name##_CAP || name == NULL) { \
|
||||
|
@ -38,7 +38,7 @@ typedef char buffer_t;
|
||||
# include <sys/epoll.h>
|
||||
/* max events for epoll() */
|
||||
# define MAX_EPOLL_EVENTS 128
|
||||
//# define LAIKA_USE_EPOLL
|
||||
# define LAIKA_USE_EPOLL
|
||||
# endif
|
||||
# include <errno.h>
|
||||
# include <unistd.h>
|
||||
|
Loading…
Reference in New Issue
Block a user