hack.h 376 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <sys/types.h>
  3. #if defined(__cplusplus)
  4. extern "C" {
  5. #endif
  6. #define AcquireAdaptiveLockSlow AllocAcquireAdaptiveLockSlow
  7. #define SchedYield AllocSchedYield
  8. #define ThreadYield AllocThreadYield
  9. #define NSystemInfo NAllocSystemInfo
  10. #ifdef _MSC_VER
  11. # define __restrict__ __restrict
  12. # define JEMALLOC_EXPORT
  13. #endif
  14. #if defined(__cplusplus)
  15. };
  16. #endif