Skip to content

Commit 39869aa

Browse files
SmallJokerest31
authored andcommittedMay 22, 2015
Fix Windows build, clean up included headers
Also fix a startup error caused by s_security.cpp
1 parent e13d2ba commit 39869aa

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
 

Diff for: ‎src/objdef.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1717
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1818
*/
1919

20-
#include <strings.h>
2120
#include "objdef.h"
2221
#include "util/numeric.h"
23-
#include "debug.h"
24-
#include "porting.h"
2522
#include "log.h"
2623
#include "gamedef.h"
2724

Diff for: ‎src/objdef.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2020
#ifndef OBJDEF_HEADER
2121
#define OBJDEF_HEADER
2222

23-
#include <string>
24-
#include <vector>
25-
#include "irrlichttypes.h"
23+
#include "porting.h"
2624

2725
class IGameDef;
2826
class INodeDefManager;

Diff for: ‎src/script/cpp_api/s_security.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool ScriptApiSecurity::safeLoadFile(lua_State *L, const char *path)
264264
fp = stdin;
265265
chunk_name = const_cast<char *>("=stdin");
266266
} else {
267-
fp = fopen(path, "r");
267+
fp = fopen(path, "rb");
268268
if (!fp) {
269269
lua_pushfstring(L, "%s: %s", path, strerror(errno));
270270
return false;

0 commit comments

Comments
 (0)
Please sign in to comment.