From e9a9a5abcc203b249d7989f30955e784915f1524 Mon Sep 17 00:00:00 2001 From: MasaGratoR Date: Mon, 22 Mar 2021 15:30:12 +0100 Subject: [PATCH] Change include of atomic to be compatible with C++ (#78) --- source/common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/common.h b/source/common.h index afe0043..607be9a 100644 --- a/source/common.h +++ b/source/common.h @@ -23,6 +23,13 @@ #ifndef __COMMON_H__ #define __COMMON_H__ +#ifndef __cplusplus +# include +#else +# include +# define _Atomic(X) std::atomic< X > +#endif + #include #include #include @@ -35,7 +42,6 @@ #include #include #include -#include #include #include