X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a5bb534ab656e9eaab163c22df0325d3baa3ce40..b72598dcbd57c40d05c9bceb6050127975511b37:/stglibs/common.lib/common.cpp diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index eb39da6a..71246704 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -23,8 +23,8 @@ */ /* - $Revision: 1.41 $ - $Date: 2010/11/03 10:26:30 $ + $Revision: 1.42 $ + $Date: 2010/11/08 10:11:19 $ $Author: faust $ */ @@ -54,9 +54,18 @@ #include <sys/socket.h> #endif*/ +#ifdef FREE_BSD +#include <sys/types.h> +#endif + +#ifdef WIN32 +#include <winsock2.h> +#else #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> +#endif + #include <iconv.h> #include <cstdlib> @@ -779,6 +788,11 @@ const std::string & x2str(unsigned x, std::string & s) return unsigned2str(x, s); } //--------------------------------------------------------------------------- +const std::string & x2str(unsigned long x, std::string & s) +{ +return unsigned2str(x, s); +} +//--------------------------------------------------------------------------- const std::string & x2str(unsigned long long x, std::string & s) { return unsigned2str(x, s);