--- libaitsched/inc/global.h 2022/09/26 19:42:50 1.13 +++ 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.13 2022/09/26 19:42:50 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,8 +87,12 @@ SUCH DAMAGE. #include #endif #include -#ifdef HAVE_BSD_STRING_H +#if defined(HAVE_LIBBSD) && ! defined(HAVE_LIBELWIX) #include +#endif + +#ifdef __ELWIX +#include #endif #include "aitsched.h"