From f0d98ad70d2188197be00f6c1a9b7338473c6485 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 18 Dec 2018 20:10:10 -0500 Subject: Various fixes to get things working under msys2 Replaced various "make" calls in the makefile with $(MAKE) Replaced a few __mingw_printf with just printf Added some instructions to the readme --- src/client/lua_api/gui/iguielement.cpp | 2 +- src/shared/lua_api/load_net.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/lua_api/gui/iguielement.cpp b/src/client/lua_api/gui/iguielement.cpp index 4ef5026..4d53ca2 100644 --- a/src/client/lua_api/gui/iguielement.cpp +++ b/src/client/lua_api/gui/iguielement.cpp @@ -177,7 +177,7 @@ int getiguitext(lua_State* L){ lua_pop(L,2);// const wchar_t *t = el->getText(); size_t cstrlen = wcslen(t); - __mingw_printf("In gui get text, cstrlen is %zu\n",cstrlen); + printf("In gui get text, cstrlen is %zu\n",cstrlen); char output[cstrlen + 1];//+1 for \0 wcstombs(output,t,cstrlen); output[cstrlen] = '\0'; diff --git a/src/shared/lua_api/load_net.cpp b/src/shared/lua_api/load_net.cpp index 4baf952..677f1d1 100644 --- a/src/shared/lua_api/load_net.cpp +++ b/src/shared/lua_api/load_net.cpp @@ -313,7 +313,7 @@ void gameloop_net(lua_State* L){ luaL_getmetatable(L,"net.stream");//func,{data=stream} lua_setmetatable(L,-2);//func,{stream} lua_call(L,1,0);// - __mingw_printf("Finished calling gameloop, buf is %p, size is %zu\n",buf,size); + printf("Finished calling gameloop, buf is %p, size is %zu\n",buf,size); nng_msg_free(msgp); printf("called nn_freemsg\n"); free(stream);//We manually set stream->data so free_stream would crash here -- cgit v1.2.3-70-g09d2