--- libelwix/inc/elwix.h 2024/12/05 12:33:49 1.25.10.1 +++ libelwix/inc/elwix.h 2025/09/26 08:58:05 1.26.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: elwix.h,v 1.25.10.1 2024/12/05 12:33:49 misho Exp $ +* $Id: elwix.h,v 1.26.4.1 2025/09/26 08:58:05 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 - 2024 +Copyright 2004 - 2025 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -51,6 +51,7 @@ SUCH DAMAGE. #include #include #include +#include #include #include #include @@ -65,6 +66,13 @@ SUCH DAMAGE. #include #include +#ifndef __cplusplus + #include +#else + #include + #define _Atomic(X) std::atomic< X > +#endif + #include #include #include @@ -82,6 +90,7 @@ SUCH DAMAGE. #include #include #include +#include #ifndef STRSIZ @@ -310,7 +319,7 @@ extern int elwix_Debug; #define ELOGGER(x, fmt, ...) do { assert((fmt)); \ char __str[BUFSIZ] = { 0 }; \ snprintf(__str, sizeof __str, (fmt), ##__VA_ARGS__); \ - syslog((x), "Logger:%s(%d): %s\n", \ + syslog((x), "Log:%s(%d): %s\n", \ __func__, __LINE__, __str); \ } while (0)