From ba9e0fa6b07eb964d770793af3292bcb3078d62e Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 11 Aug 2015 20:47:46 +0000
Subject: [PATCH] use EMSCRIPTEN_KEEPALIVE instead of maintaining the EXPORTED_FUNCTIONS flag

---
 client/test/main.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/client/test/main.cpp b/client/test/main.cpp
index c76a9ed..766b569 100644
--- a/client/test/main.cpp
+++ b/client/test/main.cpp
@@ -43,7 +43,7 @@
     list_subfolder(folder, folder);
 }
 
-void test_list_files()
+void EMSCRIPTEN_KEEPALIVE test_list_files()
 {
     std::cout << "Listing files\n" ;
     list_folder(userDataPath);
@@ -62,13 +62,13 @@
     std::cout << "File fetch failed\n";
 }
 
-void test_async_fetch(const char* url)
+void EMSCRIPTEN_KEEPALIVE test_async_fetch(const char* url)
 {
     std::cout << "Fetch file: " << url << "\n";
     humble_fetch_asset_data(url, NULL, on_get_file, on_fail_file);
 }
 
-void test_demo_end()
+void EMSCRIPTEN_KEEPALIVE test_demo_end()
 {
     std::cout << "Demo has ended\n";
     humble_demo_ended();

--
Gitblit v1.9.3