mirror of https://github.com/axmolengine/axmol.git
Fix ios compile error
This commit is contained in:
parent
341c110744
commit
30ce5244a3
|
@ -138,8 +138,8 @@
|
|||
/* }================================================================== */
|
||||
|
||||
|
||||
|
||||
static int os_execute (lua_State *L) {
|
||||
#if !defined(__APPLE__)
|
||||
const char *cmd = luaL_optstring(L, 1, NULL);
|
||||
int stat;
|
||||
errno = 0;
|
||||
|
@ -150,6 +150,9 @@ static int os_execute (lua_State *L) {
|
|||
lua_pushboolean(L, stat); /* true if there is a shell */
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue