diff -ruN original/src/ieee754.h patched/src/ieee754.h --- original/src/ieee754.h 2023-04-28 10:11:50.066986757 +0400 +++ patched/src/ieee754.h 2023-04-28 11:15:35.427853656 +0400 @@ -22,7 +22,9 @@ #include -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif union ieee754_float { @@ -193,6 +195,8 @@ #define IEEE854_LONG_DOUBLE_BIAS 0x3fff -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* ieee754.h */ diff -ruN original/src/moduls/arhiv/FSArch/mess.cpp patched/src/moduls/arhiv/FSArch/mess.cpp --- original/src/moduls/arhiv/FSArch/mess.cpp 2023-04-28 10:23:23.956348635 +0400 +++ patched/src/moduls/arhiv/FSArch/mess.cpp 2023-04-28 10:26:21.379767429 +0400 @@ -107,7 +107,8 @@ DIR *IdDir = opendir(addr().c_str()); if(IdDir == NULL && mkdir(addr().c_str(),SYS->permCrtFiles(true))) throw err_sys(_("Cannot create the archive directory '%s'."), addr().c_str()); - closedir(IdDir); + if (IdDir != NULL) + closedir(IdDir); //Checking the archiver folders for duplicates string dbl = ""; diff -ruN original/src/moduls/arhiv/FSArch/val.cpp patched/src/moduls/arhiv/FSArch/val.cpp --- original/src/moduls/arhiv/FSArch/val.cpp 2023-04-28 10:23:49.372838356 +0400 +++ patched/src/moduls/arhiv/FSArch/val.cpp 2023-04-28 10:26:21.379767429 +0400 @@ -120,7 +120,8 @@ DIR *IdDir = opendir(addr().c_str()); if(IdDir == NULL && mkdir(addr().c_str(),SYS->permCrtFiles(true))) throw err_sys(_("Cannot create the archive directory '%s'."), addr().c_str()); - closedir(IdDir); + if (IdDir != NULL) + closedir(IdDir); //Checking the archiver folders for duplicates string dbl = ""; diff -ruN original/src/moduls/bd/LDAP/mod_ldap.cpp patched/src/moduls/bd/LDAP/mod_ldap.cpp --- original/src/moduls/bd/LDAP/mod_ldap.cpp 2023-04-28 10:11:47.186931350 +0400 +++ patched/src/moduls/bd/LDAP/mod_ldap.cpp 2023-04-28 11:15:35.427853656 +0400 @@ -20,6 +20,7 @@ #include +#include #include #include diff -ruN original/src/moduls/daq/FT3/FT3_prt.h patched/src/moduls/daq/FT3/FT3_prt.h --- original/src/moduls/daq/FT3/FT3_prt.h 2023-04-28 10:11:47.418935814 +0400 +++ patched/src/moduls/daq/FT3/FT3_prt.h 2023-04-28 11:15:35.431853730 +0400 @@ -100,8 +100,6 @@ private: //Methods - //!!! Module's comandline options for print help function. - string optDescr(); //!!! Main subsystem API function for self modules input protocol object creation. TProtocolIn *in_open(const string &name); diff -ruN original/src/moduls/daq/OPC_UA/libOPC_UA/ieee754.h patched/src/moduls/daq/OPC_UA/libOPC_UA/ieee754.h --- original/src/moduls/daq/OPC_UA/libOPC_UA/ieee754.h 2023-04-28 10:11:48.074948434 +0400 +++ patched/src/moduls/daq/OPC_UA/libOPC_UA/ieee754.h 2023-04-28 11:15:35.423853582 +0400 @@ -22,7 +22,9 @@ #include -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif union ieee754_float { @@ -193,6 +195,8 @@ #define IEEE854_LONG_DOUBLE_BIAS 0x3fff -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* ieee754.h */ diff -ruN original/src/tsys.h patched/src/tsys.h --- original/src/tsys.h 2023-04-28 10:11:50.066986757 +0400 +++ patched/src/tsys.h 2023-04-28 11:15:35.431853730 +0400 @@ -56,6 +56,7 @@ #include #include #include +#include #include #include