move override wcwidth with 1 if WIN32 if defined to window.h
This commit is contained in:
@@ -23,11 +23,6 @@
|
|||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
/// FIXME: dirty workaround.
|
|
||||||
#ifdef WIN32
|
|
||||||
# define wcwidth(x) 1
|
|
||||||
#endif // WIN32
|
|
||||||
|
|
||||||
using namespace NCurses;
|
using namespace NCurses;
|
||||||
|
|
||||||
void NCurses::InitScreen(GNUC_UNUSED const char *window_title, bool enable_colors)
|
void NCurses::InitScreen(GNUC_UNUSED const char *window_title, bool enable_colors)
|
||||||
|
|||||||
@@ -57,6 +57,11 @@
|
|||||||
# define TO_WSTRING(x) (x)
|
# define TO_WSTRING(x) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// workaraund for win32
|
||||||
|
#ifdef WIN32
|
||||||
|
# define wcwidth(x) 1
|
||||||
|
#endif
|
||||||
|
|
||||||
std::string ToString(const std::wstring &);
|
std::string ToString(const std::wstring &);
|
||||||
std::wstring ToWString(const std::string &);
|
std::wstring ToWString(const std::string &);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user