move undef macros into Compat.h

Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
This commit is contained in:
Lucca Jiménez Könings
2024-01-19 14:09:56 +01:00
parent a22ad66d2b
commit 4d0864790a
2 changed files with 3 additions and 6 deletions

View File

@@ -16,6 +16,9 @@ char _getch();
#include <termios.h>
#include <unistd.h>
char _getch();
// macros 'major' and 'minor' need to be undefined on FreeBSD to avoid naming collision with system headers
#undef major
#undef minor
#endif // freebsd
// ======================= APPLE ========================