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) \
|
#define laikaM_newVector(type, name) \
|
||||||
type *name; \
|
type *name; \
|
||||||
int name##_COUNT; \
|
int name##_COUNT; \
|
||||||
int name##_CAP;
|
int name##_CAP
|
||||||
#define laikaM_initVector(name, startCap) \
|
#define laikaM_initVector(name, startCap) \
|
||||||
name = NULL; \
|
name = NULL; \
|
||||||
name##_COUNT = 0; \
|
name##_COUNT = 0; \
|
||||||
name##_CAP = startCap;
|
name##_CAP = startCap
|
||||||
|
|
||||||
#define laikaM_growVector(type, name, needed) \
|
#define laikaM_growVector(type, name, needed) \
|
||||||
if (name##_COUNT + needed >= name##_CAP || name == NULL) { \
|
if (name##_COUNT + needed >= name##_CAP || name == NULL) { \
|
||||||
|
@ -38,7 +38,7 @@ typedef char buffer_t;
|
|||||||
# include <sys/epoll.h>
|
# include <sys/epoll.h>
|
||||||
/* max events for epoll() */
|
/* max events for epoll() */
|
||||||
# define MAX_EPOLL_EVENTS 128
|
# define MAX_EPOLL_EVENTS 128
|
||||||
//# define LAIKA_USE_EPOLL
|
# define LAIKA_USE_EPOLL
|
||||||
# endif
|
# endif
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user