Skip to content

Commit

Permalink
Undefine Ncurses macros to fix Unity Build
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Nov 15, 2024
1 parent f6d5dcd commit 73fa8db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions include/tvision/internal/ncurdisp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include <internal/ansiwrit.h>
#include <ncurses.h>

// Undefine troublesome Ncurses macros.
#ifdef scroll
#undef scroll
#endif

namespace tvision
{

Expand Down
2 changes: 1 addition & 1 deletion source/platform/ncursinp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define Uses_TEvent
#include <tvision/tv.h>

#include <ncurses.h>
#include <internal/ncurdisp.h>
#include <internal/ncursinp.h>
#include <internal/getenv.h>
#include <internal/utf8.h>
Expand Down

0 comments on commit 73fa8db

Please sign in to comment.