Skip to content

Commit

Permalink
Ensure that we can use FALSE/TRUE as enum labels
Browse files Browse the repository at this point in the history
Fixes FTBFS on mingw
  • Loading branch information
umlaeute committed Dec 18, 2023
1 parent 56c9f88 commit 9664d63
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Base/GemWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ bool sendContextDestroyedMsg(t_pd*x)
}
};

/* make sure that we can use these as enums */
#ifdef TRUE
# undef TRUE
#endif
#ifdef FALSE
# undef FALSE
#endif
#ifdef NONE
# undef NONE
#endif

class GemWindow::PIMPL
{
public:
Expand Down

0 comments on commit 9664d63

Please sign in to comment.