소스 검색

Include fix in native extension example

mathiaswking 6 년 전
부모
커밋
69e3f5b513
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)
 {