Commit e0cf7354 authored by nanahira's avatar nanahira

Revert "fix"

This reverts commit 172ce88c.
parent 172ce88c
...@@ -20,10 +20,6 @@ ...@@ -20,10 +20,6 @@
#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>
...@@ -48,6 +44,9 @@ inline int _wtoi(const wchar_t * str){ ...@@ -48,6 +44,9 @@ inline int _wtoi(const wchar_t * str){
#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 d30738e0ac99e66639e9b0afc8c09bf266fbf8b5 Subproject commit 489b2ba9f4cf78ffabadea0068667f14b2147488
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