ONT source code changes to compile with MSVC 14

This commit is contained in:
Stefan von Deylen
2017-08-30 16:25:20 +01:00
parent 2641613686
commit a3c3db6b9b
7 changed files with 120 additions and 4 deletions

View File

@@ -1,6 +1,13 @@
#include <pthread.h>
#include <stdlib.h>
#include <limits.h>
#include <stdint.h>
#ifdef WIN32
#include <malloc.h>
#define alloca _alloca
#define __sync_fetch_and_add(ptr, addend) _InterlockedExchangeAdd((void*)ptr, addend)
#endif
/************
* kt_for() *