for better windows compatibility

This commit is contained in:
Heng Li
2017-09-02 17:52:33 -04:00
parent b97620afed
commit 0a3ebdc916
7 changed files with 16 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
#include <limits.h>
#include <stdint.h>
#ifdef WIN32
#if defined(WIN32) || defined(_WIN32)
#include <malloc.h>
#define alloca _alloca
#define __sync_fetch_and_add(ptr, addend) _InterlockedExchangeAdd((void*)ptr, addend)