summaryrefslogtreecommitdiffstats
path: root/lua/lua-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lua-plugin.c')
-rw-r--r--lua/lua-plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/lua-plugin.c b/lua/lua-plugin.c
index 39b32f3..89941e7 100644
--- a/lua/lua-plugin.c
+++ b/lua/lua-plugin.c
@@ -25,15 +25,15 @@
#include "lua-plugin.h"
-#ifndef lua_objlen
-#define lua_objlen lua_rawlen
-#endif
-
#if LUA_VERSION_NUM >= 502
/* ugly hack for lua 5.2 */
#define lua_open luaL_newstate
+#ifndef lua_objlen
+#define lua_objlen lua_rawlen
+#endif
+
#endif
#define IBUS_ENGINE_PLUGIN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), IBUS_TYPE_ENGINE_PLUGIN, IBusEnginePluginPrivate))