aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
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