Jelajahi Sumber

Merge pull request #44 from defold/ne-example-fix

Include fix in native extension example
Mathias Westerdahl 6 tahun lalu
induk
melakukan
2686aa025a
2 mengubah file dengan 2 tambahan dan 0 penghapusan
  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)
 {