diff --git a/include/ncpp/Plane.hh b/include/ncpp/Plane.hh index f5b9392e9..02886cb62 100644 --- a/include/ncpp/Plane.hh +++ b/include/ncpp/Plane.hh @@ -480,6 +480,7 @@ namespace ncpp return error_guard (ncplane_putwegc_yx (plane, y, x, gclust, sbytes), -1); } +#undef putwc // OK, this is ugly, but we need to rename this overload or calls similar to n->putc (0, 0, '0') will be // considered ambiguous with the above `putc (int, int, char)` overload. int putwc (int y, int x, wchar_t w) const NOEXCEPT_MAYBE @@ -1187,7 +1188,7 @@ namespace ncpp { ncplane_options nopts = { yoff, - static_cast(align), + { static_cast(align) }, rows, cols, opaque,