Commit 172ce88c authored by nanahira's avatar nanahira

fix

parent 0bfeb5bc
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#define socklen_t int #define socklen_t int
inline int _wtoi(const wchar_t * str){
return (int)wcstol(str, 0, 10);
}
#else //_WIN32 #else //_WIN32
#include <errno.h> #include <errno.h>
...@@ -44,9 +48,6 @@ ...@@ -44,9 +48,6 @@
#endif #endif
#include <wchar.h> #include <wchar.h>
inline int _wtoi(const wchar_t * str){
return (int)wcstol(str, 0, 10);
}
template<size_t N, typename... TR> template<size_t N, typename... TR>
inline int myswprintf(wchar_t(&buf)[N], const wchar_t* fmt, TR... args) { inline int myswprintf(wchar_t(&buf)[N], const wchar_t* fmt, TR... args) {
return swprintf(buf, N, fmt, args...); return swprintf(buf, N, fmt, args...);
......
Subproject commit 489b2ba9f4cf78ffabadea0068667f14b2147488 Subproject commit d30738e0ac99e66639e9b0afc8c09bf266fbf8b5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment