make the declaration of the __error() function C++ safe.  Otherwise, the linker comes up with undefined variables because of the #define errno when using _THREAD_SAFE.
make the declaration of the __error() function C++ safe.  Otherwise,
the linker comes up with undefined variables because of the #define errno
when using _THREAD_SAFE.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase