1#ifndef JEMALLOC_INTERNAL_DECLS_H 2#define JEMALLOC_INTERNAL_DECLS_H 3 4#include <math.h> 5#ifdef _WIN32 6# include <windows.h> 7# define ENOENT ERROR_PATH_NOT_FOUND 8# define EINVAL ERROR_BAD_ARGUMENTS 9# define EAGAIN ERROR_OUTOFMEMORY 10# define EPERM ERROR_WRITE_FAULT 11# define EFAULT ERROR_INVALID_ADDRESS 12# define ENOMEM ERROR_NOT_ENOUGH_MEMORY 13# undef ERANGE 14# define ERANGE ERROR_INVALID_DATA 15#else 16# include <sys/param.h> 17# include <sys/mman.h> 18# if !defined(__pnacl__) && !defined(__native_client__) 19# include <sys/syscall.h> 20# if !defined(SYS_write) && defined(__NR_write) 21# define SYS_write __NR_write 22# endif 23# include <sys/uio.h> 24# endif 25# include <pthread.h> 26# include <errno.h> 27#endif 28#include <sys/types.h> 29 30#include <limits.h> 31#ifndef SIZE_T_MAX 32# define SIZE_T_MAX SIZE_MAX 33#endif 34#include <stdarg.h> 35#include <stdbool.h> 36#include <stdio.h> 37#include <stdlib.h> 38#include <stdint.h> 39#include <stddef.h> 40#ifndef offsetof 41# define offsetof(type, member) ((size_t)&(((type *)NULL)->member)) 42#endif 43#include <inttypes.h> 44#include <string.h> 45#include <strings.h> 46#include <ctype.h> 47#ifdef _MSC_VER 48# include <io.h> 49typedef intptr_t ssize_t; 50# define PATH_MAX 1024 51# define STDERR_FILENO 2 52# define __func__ __FUNCTION__ 53/* Disable warnings about deprecated system functions */ 54# pragma warning(disable: 4996) 55#else 56# include <unistd.h> 57#endif 58#include <fcntl.h> 59 60#endif /* JEMALLOC_INTERNAL_H */ 61