aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/hack.h
blob: 3b172a2da269101c7cdccc046b7a33add204b531 (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