From eedde4abcbce9754df67536cdcb433a5e525bbdd Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 4 Mar 2019 09:45:45 +1100 Subject: [PATCH] [c-host] fixed build under linux --- c-host/app.c | 1 + common/locking.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/c-host/app.c b/c-host/app.c index 5b54d749..359e0a39 100644 --- a/c-host/app.c +++ b/c-host/app.c @@ -23,6 +23,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include #include #include +#include #include "debug.h" #include "locking.h" #include "capture/interfaces.h" diff --git a/common/locking.h b/common/locking.h index 97ed72ba..24e3949c 100644 --- a/common/locking.h +++ b/common/locking.h @@ -18,7 +18,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA */ #pragma once -#if __MINGW32__ +#if defined(__GCC__) || defined(__GNUC__) #define INTERLOCKED_AND8 __sync_and_and_fetch #define INTERLOCKED_OR8 __sync_or_and_fetch #else