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