Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix build with lua
[simgrid.git] / src / surf / surfxml_parseplatf.cpp
index ab301e3..7ab9cb9 100644 (file)
 #include "src/surf/surf_private.h"
 
 #ifdef HAVE_LUA
+extern "C" {
 #include "src/bindings/lua/simgrid_lua.h"
 
 #include <lua.h>                /* Always include this when calling Lua */
 #include <lauxlib.h>            /* Always include this when calling Lua */
 #include <lualib.h>             /* Prototype for luaL_openlibs(), */
+}
 #endif
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse);