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