aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pdlua.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pdlua.c b/src/pdlua.c
index f814727..bfd99eb 100644
--- a/src/pdlua.c
+++ b/src/pdlua.c
@@ -1120,6 +1120,7 @@ static int pdlua_error(lua_State *L)
* */
{
t_pdlua *o;
+
const char *s;
if (lua_islightuserdata(L, 1))
@@ -1243,11 +1244,11 @@ static void pdlua_init(lua_State *L)
lua_setglobal(L, "pd");
lua_getglobal(L, "pd");
lua_pushstring(L, "_iswindows");
-#ifdef MSW
+#ifdef _WIN32
lua_pushboolean(L, 1);
#else
lua_pushboolean(L, 0);
-#endif
+#endif // _WIN32
lua_settable(L, -3);
lua_pushstring(L, "_register");
lua_pushcfunction(L, pdlua_class_new);