--- libelwix/inc/elwix.h 2025/09/26 10:16:59 1.27 +++ libelwix/inc/elwix.h 2025/09/26 16:01:58 1.28 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: elwix.h,v 1.27 2025/09/26 10:16:59 misho Exp $ +* $Id: elwix.h,v 1.28 2025/09/26 16:01:58 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -66,13 +66,6 @@ SUCH DAMAGE. #include #include -#ifndef __cplusplus - #include -#else - #include - #define _Atomic(X) std::atomic< X > -#endif - #include #include #include @@ -189,11 +182,15 @@ SUCH DAMAGE. #define VACUUM_BETWEEN 2 -extern int __isthreaded; +typedef struct { + E_ATOMIC_ALIGN int value; +} e_atomic_int; #ifdef __cplusplus extern "C" { #endif + +extern int __isthreaded; // elwix_SetProg() Set program memory pool name void elwix_SetProg(const char *csProgName);