r659: for C++ compatibility

This commit is contained in:
Heng Li
2018-01-19 10:40:18 -05:00
parent af1a871270
commit 543fa12e68
6 changed files with 7 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <limits.h>
#include <stdint.h>
#include "kthread.h"
#if (defined(WIN32) || defined(_WIN32)) && defined(_MSC_VER)
#define __sync_fetch_and_add(ptr, addend) _InterlockedExchangeAdd((void*)ptr, addend)