Navigation Menu

Skip to content

Commit

Permalink
Fix Windows build, clean up included headers
Browse files Browse the repository at this point in the history
Also fix a startup error caused by s_security.cpp
  • Loading branch information
SmallJoker authored and est31 committed May 22, 2015
1 parent e13d2ba commit 39869aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/objdef.cpp
Expand Up @@ -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"

Expand Down
4 changes: 1 addition & 3 deletions src/objdef.h
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/script/cpp_api/s_security.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 39869aa

Please sign in to comment.