1
0
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:
CPunch 2022-09-01 20:07:29 -05:00
parent 587d9a26e5
commit cf01657cc2
2 changed files with 3 additions and 3 deletions

View File

@ -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) { \

View File

@ -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>