util: move definitions to util.h
This commit is contained in:
parent
7de1d61227
commit
f2cc02abc0
@ -8,19 +8,13 @@
|
||||
#include "error.h"
|
||||
#include "nt.h"
|
||||
#include "tree.h"
|
||||
#include "util.h"
|
||||
#include "win.h"
|
||||
|
||||
#ifndef SIO_BASE_HANDLE
|
||||
#define SIO_BASE_HANDLE 0x48000022
|
||||
#endif
|
||||
|
||||
#ifndef _SSIZE_T_DEFINED
|
||||
#define SSIZE_T_DEFINED
|
||||
typedef intptr_t ssize_t;
|
||||
#endif
|
||||
|
||||
#define ARRAY_COUNT(a) (sizeof(a) / (sizeof((a)[0])))
|
||||
|
||||
#define EPOLL__EVENT_MASK 0xffff
|
||||
|
||||
#define EPOLL__SOCK_LISTED 0x1
|
||||
|
||||
11
src/util.h
Normal file
11
src/util.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef EPOLL_UTIL_H_
|
||||
#define EPOLL_UTIL_H_
|
||||
|
||||
#ifndef _SSIZE_T_DEFINED
|
||||
#define SSIZE_T_DEFINED
|
||||
typedef intptr_t ssize_t;
|
||||
#endif
|
||||
|
||||
#define ARRAY_COUNT(a) (sizeof(a) / (sizeof((a)[0])))
|
||||
|
||||
#endif /* EPOLL_UTIL_H_ */
|
||||
Loading…
x
Reference in New Issue
Block a user