Skip to content
Snippets Groups Projects
Commit 39869aaa authored by SmallJoker's avatar SmallJoker Committed by est31
Browse files

Fix Windows build, clean up included headers

Also fix a startup error caused by s_security.cpp
parent e13d2baf
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <strings.h>
#include "objdef.h"
#include "util/numeric.h"
#include "debug.h"
#include "porting.h"
#include "log.h"
#include "gamedef.h"
......
......@@ -20,9 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef OBJDEF_HEADER
#define OBJDEF_HEADER
#include <string>
#include <vector>
#include "irrlichttypes.h"
#include "porting.h"
class IGameDef;
class INodeDefManager;
......
......@@ -264,7 +264,7 @@ bool ScriptApiSecurity::safeLoadFile(lua_State *L, const char *path)
fp = stdin;
chunk_name = const_cast<char *>("=stdin");
} else {
fp = fopen(path, "r");
fp = fopen(path, "rb");
if (!fp) {
lua_pushfstring(L, "%s: %s", path, strerror(errno));
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment