1#ifndef JEMALLOC_INTERNAL_DECLS_H
2#define	JEMALLOC_INTERNAL_DECLS_H
3
4#include "libc_private.h"
5#include "namespace.h"
6
7#include <math.h>
8#ifdef _WIN32
9#  include <windows.h>
10#  include "msvc_compat/windows_extra.h"
11
12#else
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
19#    endif
20#    include <sys/uio.h>
21#  endif
22#  include <pthread.h>
23#  include <errno.h>
24#  include <sys/time.h>
25#endif
26#include <sys/types.h>
27
28#include <limits.h>
29#ifndef SIZE_T_MAX
30#  define SIZE_T_MAX	SIZE_MAX
31#endif
32#include <stdarg.h>
33#include <stdbool.h>
34#include <stdio.h>
35#include <stdlib.h>
36#include <stdint.h>
37#include <stddef.h>
38#ifndef offsetof
39#  define offsetof(type, member)	((size_t)&(((type *)NULL)->member))
40#endif
41#include <string.h>
42#include <strings.h>
43#include <ctype.h>
44#ifdef _MSC_VER
45#  include <io.h>
46typedef 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
52#  endif
53/* Disable warnings about deprecated system functions. */
54#  pragma warning(disable: 4996)
55#if _MSC_VER < 1800
56static int
57isblank(int c)
58{
59
60	return (c == '\t' || c == ' ');
61}
62#endif
63#else
64#  include <unistd.h>
65#endif
66#include <fcntl.h>
67
68#endif /* JEMALLOC_INTERNAL_H */
69