config.h.in
changeset 54 6bef2082e5f9
parent 31 afcdbbce5002
child 57 37ed3c7ac1b6
--- a/config.h.in	Wed Nov 28 01:55:12 2012 +0200
+++ b/config.h.in	Wed Nov 28 01:56:15 2012 +0200
@@ -22,12 +22,20 @@
 // define this to enable debugging output
 #cmakedefine DEBUG
 
+// define this, if you are building with liblua 5.2
+#cmakedefine HAVE_LUA52
+
 // define this, if your loudmouth have lm_connection_get_keep_alive_rate ()
 #cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
 
 // define this, if your loudmouth have lm_connection_unregister_reply_handler ()
 #cmakedefine HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER
 
+#ifndef HAVE_LUA52
+#  define lua_rawlen lua_objlen
+#  define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
+#endif
+
 #ifdef DEBUG
 #  include <glib.h>