--- libaitsched/inc/global.h 2022/10/17 22:45:06 1.14 +++ libaitsched/inc/global.h 2026/05/20 04:07:04 1.16 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: global.h,v 1.14 2022/10/17 22:45:06 misho Exp $ +* $Id: global.h,v 1.16 2026/05/20 04:07:04 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2022 +Copyright 2004 - 2026 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -62,6 +62,14 @@ SUCH DAMAGE. #include #include #include +#ifdef ATOMIC_SUPPORT +#ifndef __cplusplus + #include +#else + #include + #define _Atomic(X) std::atomic +#endif +#endif #if SUP_ENABLE == EP_SUPPORT || defined(__linux__) #include "bsd_queue.h" #include @@ -79,7 +87,7 @@ SUCH DAMAGE. #include #endif #include -#ifdef HAVE_BSD_STRING_H +#if defined(HAVE_LIBBSD) && ! defined(HAVE_LIBELWIX) #include #endif