aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/hack.h
blob: 854fcf52f14adf62c464175f97a6d0de9fc48809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once 

#include <sys/types.h>

#if defined(__cplusplus)
extern "C" {
#endif

#define AcquireAdaptiveLockSlow AllocAcquireAdaptiveLockSlow
#define SchedYield AllocSchedYield
#define ThreadYield AllocThreadYield
#define NSystemInfo NAllocSystemInfo

#ifdef _MSC_VER
#   define __restrict__ __restrict
#   define JEMALLOC_EXPORT
#endif

#if defined(__cplusplus)
};
#endif