aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorThijs <thijs@thijsschreijer.nl>2023-11-16 09:09:54 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-04-30 09:28:01 +0200
commitbd994461ef7c2553da9a6945c685152bad50eb8f (patch)
tree28adc32712f00a200a34357e731a570bf1a359dc /src/compat.h
parent47c24eed0191f8f72646be63dee94ac2b35eb062 (diff)
downloadluasystem-bd994461ef7c2553da9a6945c685152bad50eb8f.tar.gz
luasystem-bd994461ef7c2553da9a6945c685152bad50eb8f.tar.bz2
luasystem-bd994461ef7c2553da9a6945c685152bad50eb8f.zip
feat(term): getting/setting terminal config flags
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
index 35f9ef2..7a1fcee 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -13,6 +13,17 @@ void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup);
13#include <sys/types.h> 13#include <sys/types.h>
14#endif 14#endif
15 15
16// Windows compatibility; define DWORD and TRUE/FALSE on non-Windows
17#ifndef _WIN32
18#ifndef DWORD
19#define DWORD unsigned long
20#endif
21#ifndef TRUE
22#define TRUE 1
23#define FALSE 0
24#endif
25#endif
26
16#ifdef _MSC_VER 27#ifdef _MSC_VER
17// MSVC Windows doesn't have ssize_t, so we define it here 28// MSVC Windows doesn't have ssize_t, so we define it here
18#if SIZE_MAX == UINT_MAX 29#if SIZE_MAX == UINT_MAX