git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Видалено не використовуваний заголовочний файл stgstring.h
[stg.git]
/
stglibs
/
common.lib
/
common.cpp
diff --git
a/stglibs/common.lib/common.cpp
b/stglibs/common.lib/common.cpp
index eb39da6a8138d6611406ca76956416a7dc2a5491..7124670401bf5a6ed922145e29268b38488d5eb8 100644
(file)
--- a/
stglibs/common.lib/common.cpp
+++ b/
stglibs/common.lib/common.cpp
@@
-23,8
+23,8
@@
*/
/*
*/
/*
- $Revision: 1.4
1
$
- $Date: 2010/11/0
3 10:26:30
$
+ $Revision: 1.4
2
$
+ $Date: 2010/11/0
8 10:11:19
$
$Author: faust $
*/
$Author: faust $
*/
@@
-54,9
+54,18
@@
#include <sys/socket.h>
#endif*/
#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>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
+
#include <iconv.h>
#include <cstdlib>
#include <iconv.h>
#include <cstdlib>
@@
-779,6
+788,11
@@
const std::string & x2str(unsigned x, std::string & s)
return unsigned2str(x, 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);
const std::string & x2str(unsigned long long x, std::string & s)
{
return unsigned2str(x, s);