Explorar el Código

Include fix in native extension example

mathiaswking hace 6 años
padre
commit
69e3f5b513
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      docs/en/manuals/extensions.md
  2. 1 0
      docs/ko/manuals/extensions.md

+ 1 - 0
docs/en/manuals/extensions.md

@@ -71,6 +71,7 @@ The extension source file contains the following code:
 
 // include the Defold SDK
 #include <dmsdk/sdk.h>
+#include <malloc.h>
 
 static int Rot13(lua_State* L)
 {

+ 1 - 0
docs/ko/manuals/extensions.md

@@ -52,6 +52,7 @@ Defold 에디터는 기본적으로 .cpp 파일을 열 수 없으므로 파일
 
 // include the Defold SDK
 #include <dmsdk/sdk.h>
+#include <malloc.h>
 
 static int Rot13(lua_State* L)
 {