1 #ifndef JEMALLOC_INTERNAL_DECLS_H
2 #define JEMALLOC_INTERNAL_DECLS_H
4 #include "libc_private.h"
10 # include "msvc_compat/windows_extra.h"
13 # include <sys/param.h>
14 # include <sys/mman.h>
15 # if !defined(__pnacl__) && !defined(__native_client__)
16 # include <sys/syscall.h>
17 # if !defined(SYS_write) && defined(__NR_write)
18 # define SYS_write __NR_write
24 # include <sys/time.h>
26 #include <sys/types.h>
30 # define SIZE_T_MAX SIZE_MAX
39 # define offsetof(type, member) ((size_t)&(((type *)NULL)->member))
46 typedef intptr_t ssize_t;
47 # define PATH_MAX 1024
48 # define STDERR_FILENO 2
49 # define __func__ __FUNCTION__
50 # ifdef JEMALLOC_HAS_RESTRICT
51 # define restrict __restrict
53 /* Disable warnings about deprecated system functions. */
54 # pragma warning(disable: 4996)
60 return (c == '\t' || c == ' ');
68 #endif /* JEMALLOC_INTERNAL_H */