Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Protect every lua header with extern 'C'
[simgrid.git] / src / bindings / lua / lua_host.cpp
index 804b672..cf6e1ab 100644 (file)
@@ -7,8 +7,10 @@
 /* SimGrid Lua bindings                                                     */
 
 #include "lua_private.h"
-#include <lauxlib.h>
 #include <simgrid/host.h>
+extern "C" {
+#include <lauxlib.h>
+}
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(lua_host, bindings, "Lua bindings (host module)");