Commit 891d6264 authored by nanahira's avatar nanahira

Merge branch 'develop' into server-develop

parents 3dfd2284 25e5c6a4
...@@ -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,11 @@ inline int _wtoi(const wchar_t * str){ ...@@ -48,6 +44,11 @@ inline int _wtoi(const wchar_t * str){
#endif #endif
#include <wchar.h> #include <wchar.h>
#ifndef _WIN32
inline int _wtoi(const wchar_t * str){
return (int)wcstol(str, 0, 10);
}
#endif
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...);
......
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