From d69b414094fa2fe8943e8d5ff0ecb681f8f58966 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sat, 2 May 2020 17:18:40 +0200 Subject: [PATCH] macOS build fix --- src/include/final/ftermcap.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/include/final/ftermcap.h b/src/include/final/ftermcap.h index 2f986065..7bfe3b6d 100644 --- a/src/include/final/ftermcap.h +++ b/src/include/final/ftermcap.h @@ -153,28 +153,28 @@ inline const FString FTermcap::getClassName() const template bool FTermcap::getFlag (const CharT& cap) { - return tgetflag(cap); + return tgetflag(C_STR(cap)); } //---------------------------------------------------------------------- template int FTermcap::getNumber (const CharT& cap) { - return tgetnum(cap); + return tgetnum(C_STR(cap)); } //---------------------------------------------------------------------- template char* FTermcap::getString (const CharT& cap) { - return tgetstr(cap, reinterpret_cast(&string_buf)); + return tgetstr(C_STR(cap), reinterpret_cast(&string_buf)); } //---------------------------------------------------------------------- template char* FTermcap::encodeMotionParameter (const CharT& cap, int col, int row) { - return tgoto(cap, col, row); + return tgoto(C_STR(cap), col, row); } //---------------------------------------------------------------------- @@ -188,7 +188,7 @@ inline char* FTermcap::encodeParameter (Args&&... args) template int FTermcap::paddingPrint (const CharT& str, int affcnt, fn_putc putc) { - return _tputs (str, affcnt, putc); + return _tputs (C_STR(str), affcnt, putc); } } // namespace finalcut